From 29d08b9b2e2e34c97671155b2ce8cdb14646766d Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sun, 19 Feb 2006 00:39:21 +0000 Subject: [PATCH] add new home directory script which creates a new directory --- new_home_directory | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 new_home_directory diff --git a/new_home_directory b/new_home_directory new file mode 100755 index 0000000..02a717b --- /dev/null +++ b/new_home_directory @@ -0,0 +1,27 @@ +#!/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; \ No newline at end of file -- 2.39.5