]> git.donarmstrong.com Git - bin.git/commitdiff
add new home directory script which creates a new directory
authorDon Armstrong <don@donarmstrong.com>
Sun, 19 Feb 2006 00:39:21 +0000 (00:39 +0000)
committerDon Armstrong <don@donarmstrong.com>
Sun, 19 Feb 2006 00:39:21 +0000 (00:39 +0000)
new_home_directory [new file with mode: 0755]

diff --git a/new_home_directory b/new_home_directory
new file mode 100755 (executable)
index 0000000..02a717b
--- /dev/null
@@ -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