# HG changeset patch # User k0s # Date 1263936141 18000 # Node ID ac34d580c6d7ebed45943577c5141578e3e14751 # Parent f6e9284dfe086e2385fb89573a385b982357b603 make symbolic links when necessary (should generalize) diff -r f6e9284dfe08 -r ac34d580c6d7 python/install_config.py --- 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)