Add waf install to automated script
This commit is contained in:
parent
ca2a4dce8c
commit
c8a50d70ff
1 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,7 @@ if __name__ == '__main__':
|
||||||
args = ['sudo', sys.executable] + sys.argv + [os.environ]
|
args = ['sudo', sys.executable] + sys.argv + [os.environ]
|
||||||
os.execlpe('sudo', *args)
|
os.execlpe('sudo', *args)
|
||||||
elif input("Are you sure you want to install (allthethings)? [Y/N]: ").lower() == 'y':
|
elif input("Are you sure you want to install (allthethings)? [Y/N]: ").lower() == 'y':
|
||||||
|
os.system('./install-waf.sh')
|
||||||
waf_scripts = []
|
waf_scripts = []
|
||||||
for key, func in get_functions().items():
|
for key, func in get_functions().items():
|
||||||
if type(func).__name__ == 'function':
|
if type(func).__name__ == 'function':
|
||||||
|
@ -26,4 +27,4 @@ if __name__ == '__main__':
|
||||||
for func in waf_scripts:
|
for func in waf_scripts:
|
||||||
cmd = "waf {}".format(func)
|
cmd = "waf {}".format(func)
|
||||||
print("Running {}".format(cmd))
|
print("Running {}".format(cmd))
|
||||||
os.system(cmd)
|
os.system("sudo " + cmd)
|
||||||
|
|
Loading…
Reference in a new issue