6 sys
.exit("need an argument, config file name")
11 exec(compile(open(sys
.argv
[1]).read(), sys
.argv
[1], 'exec'))
13 # check arch var exists
14 if 'ARCH' not in locals():
15 sys
.exit("config file doesn't have ARCH set")
19 os
.remove("config.py")
20 os
.remove("config.pyc")
21 os
.remove("include/arch")
22 os
.remove("include/mach")
26 os
.symlink(sys
.argv
[1], "config.py")
27 os
.symlink("../arch/" + ARCH
+ "/include/", "include/arch")
28 if 'MACH' in locals():
29 os
.symlink("../arch/" + ARCH
+ "/mach-" + MACH
+ "/include/", "include/mach")