From 1f88ee3ca518bf5ee8b11f78d8dbc7b38428f4a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 26 Apr 2015 10:52:21 +0200 Subject: Generate configuration for root Makefile from conf.py --- scripts/confmk.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 scripts/confmk.py (limited to 'scripts') 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() -- cgit v1.2.3