dotfiles/INSTALL_ALL_THE_THINGS

36 lines
815 B
Text
Raw Normal View History

2016-02-07 22:09:07 +00:00
#!/usr/bin/env python3
2016-02-05 18:05:20 +00:00
2016-02-09 23:28:58 +00:00
import os, time
2016-02-08 22:27:58 +00:00
from scripts.install_dotfiles import *
2016-02-05 18:26:20 +00:00
2016-02-08 22:27:58 +00:00
EXEC_ORDER = [
update,
apt_upgrade,
apt_install_core,
add_apt_keys,
add_apt_sources,
add_apt_repos,
update,
run_custom_installs,
2016-02-09 22:20:35 +00:00
update,
apt_install_extras,
2016-02-09 22:49:59 +00:00
source,
2016-02-08 22:27:58 +00:00
install_atom_packages,
export_atom_config,
install_configs
]
2016-02-05 18:05:20 +00:00
if __name__ == '__main__':
2016-02-09 23:28:58 +00:00
t0 = "temp_time"
2016-02-05 18:26:20 +00:00
if os.geteuid() != 0:
2016-02-07 19:09:53 +00:00
print("Please run as root!")
2016-02-05 18:26:20 +00:00
elif input("Are you sure you want to install (allthethings)? [Y/N]: ").lower() == 'y':
2016-02-09 23:28:58 +00:00
t0 = time.time()
2016-02-08 22:27:58 +00:00
for script in EXEC_ORDER:
script()
2016-02-09 23:28:58 +00:00
print("\n>> {} Exe1cuted.\n".format(script.__name__))
t1 = time.time()
print("Execution Complete")
print("Took {} seconds.".format(t1 - t0))