From becdfde7b5a2f428cd4effae6b8958f865708ec4 Mon Sep 17 00:00:00 2001 From: Bahadir Balban Date: Wed, 23 Sep 2009 16:23:59 +0300 Subject: [PATCH] Separated configuration input and output to 2 stages --- configure.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.py b/configure.py index e1f5d93..320d7df 100755 --- a/configure.py +++ b/configure.py @@ -29,13 +29,17 @@ def cml2_update_config_h(config_h_path, config): def cml2_configure(cml2_config_file): os.system(CML2TOOLSDIR + '/cmlcompile.py -o ' + CML2RULES + ' ' + cml2_config_file) - if not os.path.exists(CML2_CONFIG_FILE): + if not os.path.exists(CML2_OLDCONFIG_FILE): os.system(CML2TOOLSDIR + '/cmlconfigure.py -c -o ' + \ CML2_CONFIG_FILE + ' ' + CML2RULES) else: os.system(CML2TOOLSDIR + '/cmlconfigure.py -c -o ' + CML2_CONFIG_FILE + \ - ' -i ' + CML2_CONFIG_FILE + ' ' + CML2RULES) + ' -i ' + CML2_OLDCONFIG_FILE + ' ' + CML2RULES) os.system(TOOLSDIR + '/cml2header.py -o ' + CML2_CONFIG_H + ' -i ' + CML2_CONFIG_FILE) + + # Do the actual copying here + shutil.copy(CML2_CONFIG_FILE, CML2_OLDCONFIG_FILE) + if not os.path.exists("build/l4"): os.mkdir("build/l4") shutil.copy(CML2_CONFIG_H, CONFIG_H)