3 # gets all of fred's revision control folders out.
5 source "$FEISTY_MEOW_SCRIPTS/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).
29 elif [ -d ".svn" ]; then
31 elif [ -d ".git" ]; then
34 echo unknown repository for $directory...
38 function checkout_list {
41 # turn repo list back into an array.
42 eval "repository_list=( ${REPOSITORY_LIST[*]} )"
43 for j in "${repository_list[@]}"; do
44 # add in the directory for our purposes here.
47 echo no directory called $j exists
52 echo -n "retrieving '$j'... "
61 # perform the checkouts as appropriate per OS.
62 if [ "$OS" != "Windows_NT" ]; then
63 checkout_list $HOME 2>&1 | tee -a "$TMPO_CHK"
65 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"
70 # we now regenerate the scripts after getme, to ensure it's done automatically.
71 bash "$FEISTY_MEOW_SCRIPTS/core/bootstrap_shells.sh"
72 perl "$FEISTY_MEOW_SCRIPTS/core/generate_aliases.pl"