#!/bin/sh # makes a new home directory; defaults to one that does not use ssh SVN_BASE=http://svn.donarmstrong.com/don/trunk # check out bin and lib cd ~; svn co $SVN_BASE/bin svn co $SVN_BASE/lib # check out the .home modules mkdir .home_modules; ( cd .home_modules; svn co $SVN_BASE/home_modules/base; for module in $@; do svn co $SVN_BASE/home_modules/$module; done; ) # make a home backup directory mkdir home_backup; mv .wgetrc .svn .sversionrc home_backup/; # run the appropriate command to set the symlinks correctly $(awk -F "$(echo -ne '\t')" '{print $2}' base/sa_base) ~/.home_modules; mkdir .sa.d; ln -s ~/.home_modules/*/sa_* .sa.d/; exec sa update;