diff options
author | Alberto Gonzalez Iniesta <agi@inittab.org> | 2012-02-21 15:53:40 +0100 |
---|---|---|
committer | Alberto Gonzalez Iniesta <agi@inittab.org> | 2012-02-21 15:53:40 +0100 |
commit | 349cfa7acb95abe865209a28e417ec74b56f9bba (patch) | |
tree | ad65334821b587c4ecdd461be84c94305ffdb888 /win/config_ti.py |
Imported Upstream version 2.2.1upstream/2.2.1
Diffstat (limited to 'win/config_ti.py')
-rw-r--r-- | win/config_ti.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/win/config_ti.py b/win/config_ti.py new file mode 100644 index 0000000..8742caa --- /dev/null +++ b/win/config_ti.py @@ -0,0 +1,18 @@ +import os, shutil +from wb import preprocess, home_fn, autogen + +def main(config): + src = os.path.join(home_fn(config['TISRC']), config['DDKVER_MAJOR']) + dest = home_fn('tapinstall') + shutil.rmtree(dest, ignore_errors=True) + shutil.copytree(src, dest) + preprocess(config, + in_fn=os.path.join(src, 'sources'), + out_fn=os.path.join(dest, 'sources'), + if_prefix='!', + head_comment='# %s\n\n' % autogen) + +# if we are run directly, and not loaded as a module +if __name__ == "__main__": + from wb import config + main(config) |