changeset 14:ac34d580c6d7

make symbolic links when necessary (should generalize)
author k0s <k0scist@gmail.com>
date Tue, 19 Jan 2010 16:22:21 -0500
parents f6e9284dfe08
children 31023aedee9c
files python/install_config.py
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/python/install_config.py	Tue Jan 12 17:29:00 2010 -0500
+++ b/python/install_config.py	Tue Jan 19 16:22:21 2010 -0500
@@ -8,14 +8,20 @@
 SRC='http://k0s.org/hg/config'
 import os
 import sys
-os.chdir(os.environ['HOME'])
+HOME=os.environ['HOME']
+os.chdir(HOME)
 
 # make the current directory a repository
 import subprocess
 
 commands = [ ['hg', 'init'],
              ['hg', 'pull', SRC],
-             ['hg', 'update', '-C' ] ]
+             ['hg', 'update', '-C'],
+
+             # site-specific files
+             ['rm', '.subversion/config'],
+             ['ln', '-s', os.path.join(HOME, '.subversion_config/config'), os.path.join(HOME, '.subversion/config')],
+             ]
 
 for command in commands:
     code = subprocess.call(command)