3 # gets all of fred's revision control folders out.
5 source "$SHELLDIR/rev_control/rev_control.sh"
7 if [ "$(pwd)" != "$TMP" ]; then
8 # echo "Moving to the TMP directory to avoid file access conflicts..."
9 new_name="$TMP/zz_$(basename $0)"
10 cp -f "$0" "$new_name"
12 echo "failed to copy this script up to the TMP directory. exploit attempted?"
20 export TMPO_CHK=$TMP/zz_chk.log
22 # selects the checkout method based on where we are (the host the script runs on).
28 cvs co -P -kb "$directory"
29 elif [ -d ".svn" ]; then
31 elif [ -d ".git" ]; then
34 echo unknown repository for $directory...
38 function checkout_list {
41 #this list should be part of the configuration file, not part of script.
42 for j in $i/feisty_meow $i/hoople $i/hoople1 $i/hoople2 $i/quartz $i/web $i/yeti $i/xsede/xsede_tests $i/xsede/code/cak0l/trunk ; do
44 # echo no directory called $j exists
49 echo -n "retrieving '$j'... "
58 # perform the checkouts as appropriate per OS.
59 if [ "$OS" != "Windows_NT" ]; then
60 checkout_list $HOME 2>&1 | tee -a "$TMPO_CHK"
62 checkout_list c:/ c:/home d:/ d:/home e:/ e:/home f:/ f:/home g:/ g:/home h:/ h:/home i:/ i:/home 2>&1 | tee -a "$TMPO_CHK"
67 # we now regenerate the scripts after getme, to ensure it's done automatically.
68 bash "$SHELLDIR/core/bootstrap_shells.sh"
69 perl "$SHELLDIR/core/generate_aliases.pl"