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).
27 # get the right modifier for the directory name.
28 compute_modifier "$directory" "out"
31 checkout_cmd="echo unknown repository for $directory... "
33 if [ "$home_system" == "true" ]; then
34 checkout_cmd="svn update ."
37 # then we pretty much ignore what we guessed, and just use the
38 # appropriate command for what we see inside the directory.
39 if [ -d "$directory/CVS" ]; then
40 checkout_cmd="cvs co -P -kb "
41 modifier= # reset the modifier, since we know we have cvs.
43 elif [ -d "$directory/.svn" ]; then
44 checkout_cmd="svn update ."
47 if [ $is_svn -eq 1 ]; then
48 pushd "$directory" &>/dev/null
52 $checkout_cmd "$modifier$directory"
56 function checkout_list {
59 #this list should be part of the configuration file, not part of script.
60 for j in $i/feisty_meow $i/hoople $i/hoople2 $i/quartz $i/web $i/yeti $i/xsede/xsede_tests $i/xsede/code/cak0l/trunk ; do
62 # echo no directory called $j exists
67 echo -n "retrieving '$j'... "
77 # perform the checkouts as appropriate per OS.
78 if [ "$OS" != "Windows_NT" ]; then
79 checkout_list $HOME 2>&1 | tee -a "$TMPO_CHK"
81 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"
86 # we now regenerate the scripts after getme, to ensure it's done automatically.
87 bash "$SHELLDIR/core/bootstrap_shells.sh"
88 perl "$SHELLDIR/core/generate_aliases.pl"