Add waf install to automated script

This commit is contained in:
Jake Howard 2016-02-05 18:31:52 +00:00
parent ca2a4dce8c
commit c8a50d70ff

View file

@ -18,6 +18,7 @@ if __name__ == '__main__':
args = ['sudo', sys.executable] + sys.argv + [os.environ]
os.execlpe('sudo', *args)
elif input("Are you sure you want to install (allthethings)? [Y/N]: ").lower() == 'y':
os.system('./install-waf.sh')
waf_scripts = []
for key, func in get_functions().items():
if type(func).__name__ == 'function':
@ -26,4 +27,4 @@ if __name__ == '__main__':
for func in waf_scripts:
cmd = "waf {}".format(func)
print("Running {}".format(cmd))
os.system(cmd)
os.system("sudo " + cmd)