Added automated install file
This commit is contained in:
parent
976dfc7e50
commit
e96dd2aa23
1 changed files with 22 additions and 0 deletions
22
INSTALL_ALL_THE_THINGS
Executable file
22
INSTALL_ALL_THE_THINGS
Executable file
|
@ -0,0 +1,22 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
|
def get_functions():
|
||||||
|
ns = {}
|
||||||
|
fn = os.path.join(os.path.dirname(__file__), 'wscript')
|
||||||
|
with open(fn) as f:
|
||||||
|
code = compile(f.read(), fn, 'exec')
|
||||||
|
eval(code, ns, ns)
|
||||||
|
return ns
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
waf_scripts = []
|
||||||
|
for key, func in get_functions().items():
|
||||||
|
if type(func).__name__ == 'function':
|
||||||
|
waf_scripts.append(key)
|
||||||
|
|
||||||
|
for func in waf_scripts:
|
||||||
|
cmd = "waf {}".format(func)
|
||||||
|
print("Running {}".format(cmd))
|
||||||
|
os.system(cmd)
|
Loading…
Reference in a new issue