root/env/init.sh

Revision 3, 436 bytes (checked in by devja..@anarkystic.com, 1 year ago)

sendin the env down the rivarr

  • Property svn:executable set to *
Line 
1 #!/bin/sh
2 TIMESTAMP=`date +%s`
3 PLATFORM=`uname`
4
5 # link the files into place
6 for x in `cat $HOME/env/MANIFEST`
7 do
8     if [ -e $HOME/$x ]; then
9         echo "Moving $HOME/$x -> $HOME/$x.old.$TIMESTAMP"
10         mv $HOME/$x $HOME/$x.old.$TIMESTAMP
11     fi
12     echo "Linking $HOME/env/$x -> $HOME/$x"
13     ln -s $HOME/env/$x $HOME/$x
14 done
15
16 # do platform specific setup
17 [ -f $HOME/env/init.$PLATFORM.sh ] && source $HOME/env/init.$PLATFORM.sh
Note: See TracBrowser for help on using the browser.