aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/confmk.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/confmk.py b/scripts/confmk.py
new file mode 100755
index 0000000..ef27543
--- /dev/null
+++ b/scripts/confmk.py
@@ -0,0 +1,19 @@
+#!/bin/python3
+import os
+import sys
+from conf import conf
+
+def gen_confmk():
+ try:
+ os.remove(conf.dot_confmk)
+ except OSError:
+ pass
+
+ with open(conf.dot_confmk, 'w') as f:
+ f.write("# This file is generated. Please don't edit this file.\n")
+ f.write("SRCARCH := " + conf.SRCARCH + "\n")
+
+#################################################################################
+
+if __name__ == '__main__':
+ gen_confmk()