comparison python/install_config.py @ 234:761e7dfc675e

updates from most recent usage
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 09 Aug 2012 12:54:12 -0700
parents 4390ca34912c
children aa31dc7ccb66
comparison
equal deleted inserted replaced
233:342c121cbc30 234:761e7dfc675e
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2
2 """ 3 """
3 installs config to a user's home directory 4 installs config to a user's home directory
4 this can be done with 5 this can be done with
5 curl http://k0s.org/hg/config/raw-file/tip/python/install_config.py | python 6 curl http://k0s.org/hg/config/raw-file/tip/python/install_config.py | python
6 """ 7 """
82 83
83 postinstall_commands = [ ['ln', '-s', os.path.join(HOME, 'smartopen', 'bin', 'smartopen'), os.path.join(HOME, 'bin', 'smartopen') ], 84 postinstall_commands = [ ['ln', '-s', os.path.join(HOME, 'smartopen', 'bin', 'smartopen'), os.path.join(HOME, 'bin', 'smartopen') ],
84 ['ln', '-s', os.path.join(HOME, 'silvermirror', 'bin', 'silvermirror'), os.path.join(HOME, 'bin', 'silvermirror') ], 85 ['ln', '-s', os.path.join(HOME, 'silvermirror', 'bin', 'silvermirror'), os.path.join(HOME, 'bin', 'silvermirror') ],
85 ] 86 ]
86 execute(*postinstall_commands) 87 execute(*postinstall_commands)
88 else:
89 print "git not installed"
87 90
88 # - ubuntu packages to install: 91 # - ubuntu packages to install:
89 PACKAGES="mercurial unison fluxbox antiword xclip graphviz python-dev python-lxml curl arandr" 92 PACKAGES="mercurial unison fluxbox antiword xclip graphviz python-dev python-lxml curl arandr git emacs"
90 print "Ensure the following packages are installed:" 93 print "Ensure the following packages are installed:"
91 print "sudo apt-get install %s" % PACKAGES 94 print "sudo apt-get install %s" % PACKAGES