From 0aec9c80e33d20e171397351a595a02d2593c850 Mon Sep 17 00:00:00 2001
From: BotoX <github@botox.bz>
Date: Sat, 21 Sep 2019 23:50:10 +0200
Subject: [PATCH] add sm-plugins-secrets

---
 .gitmodules    | 3 +++
 compile-all.py | 5 +++--
 compile.py     | 4 ++--
 secrets        | 1 +
 4 files changed, 9 insertions(+), 4 deletions(-)
 create mode 100644 .gitmodules
 create mode 160000 secrets

diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 00000000..0985a2c6
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "secrets"]
+	path = secrets
+	url = ssh://gogs@git.unloze.com:2222/UNLOZE/sm-plugins-secrets.git
diff --git a/compile-all.py b/compile-all.py
index 2c9c8a72..db9a2ba6 100755
--- a/compile-all.py
+++ b/compile-all.py
@@ -15,7 +15,8 @@ if __name__ == "__main__":
 	Plugins = []
 	Path, Directories, Files = next(os.walk("."))
 	for Directory in Directories:
-		if not Directory.startswith(".") and not Directory.startswith("_") and Directory != "include" and Directory != "includes" and Directory != "plugins":
+		if not Directory.startswith(".") and not Directory.startswith("_") and \
+				Directory != "include" and Directory != "includes" and Directory != "plugins" and Directory != "secrets":
 			Plugins.append(Directory)
 
 	for Plugin in Plugins:
@@ -31,7 +32,7 @@ if __name__ == "__main__":
 				OutDir = "plugins"
 				OutPath = os.path.join(OutDir, os.path.splitext(os.path.basename(SourcePath))[0] + ".smx")
 
-				Compiler = [SPCOMP, "-i" + SM_INCLUDES, "-i" + "include"]
+				Compiler = [SPCOMP, "-i" + SM_INCLUDES, "-i" + "include", "-i" + "secrets"]
 				if os.path.isdir(IncludePath):
 					Compiler.append("-i" + IncludePath)
 				Compiler.append(SourcePath)
diff --git a/compile.py b/compile.py
index 6738cc22..b46a416e 100755
--- a/compile.py
+++ b/compile.py
@@ -14,7 +14,7 @@ SPCOMP = "./spcomp"
 if __name__ == "__main__":
 	Plugins = []
 	for Directory in sys.argv[1:]:
-		if Directory != ".git" and Directory != "include" and Directory != "includes" and Directory != "plugins":
+		if Directory != ".git" and Directory != "include" and Directory != "includes" and Directory != "plugins" and Directory != "secrets":
 			Plugins.append(Directory)
 
 	for Plugin in Plugins:
@@ -28,7 +28,7 @@ if __name__ == "__main__":
 				OutDir = "plugins"
 				OutPath = os.path.join(OutDir, os.path.splitext(os.path.basename(SourcePath))[0] + ".smx")
 
-				Compiler = [SPCOMP, "-i" + SM_INCLUDES, "-i" + "include"]
+				Compiler = [SPCOMP, "-i" + SM_INCLUDES, "-i" + "include", "-i" + "secrets"]
 				if os.path.isdir(IncludePath):
 					Compiler.append("-i" + IncludePath)
 				Compiler.append(SourcePath)
diff --git a/secrets b/secrets
new file mode 160000
index 00000000..090534b1
--- /dev/null
+++ b/secrets
@@ -0,0 +1 @@
+Subproject commit 090534b1abe620d7219b965855d758fa09896cea