X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Frev_control%2Frev_control.sh;h=f809f5f1513de993e598210f18a47eb83e949fa6;hb=f6cd637b4e8ac3663ad196cdfa2fab088201471f;hp=4b7b1ecc52e3bad67d1bf1d42849af457268fa55;hpb=2952ccf47b80174880141a7ecfa122089f349b8d;p=feisty_meow.git diff --git a/scripts/rev_control/rev_control.sh b/scripts/rev_control/rev_control.sh index 4b7b1ecc..f809f5f1 100644 --- a/scripts/rev_control/rev_control.sh +++ b/scripts/rev_control/rev_control.sh @@ -3,6 +3,19 @@ # these are helper functions for doing localized revision control. # this script should be sourced into other scripts that use it. +# one unpleasantry to take care of first; cygwin barfs aggressively if the TMP directory +# is a DOS path, but we need it to be a DOS path for our XSEDE testing, so that blows. +# to get past this, TMP gets changed below to a hopefully generic and safe place. + +export TMP=/tmp/rev_control_$USER +if [ ! -d "$TMP" ]; then + mkdir $TMP +fi +if [ ! -d "$TMP" ]; then + echo "Could not create the temporary directory TMP in: $TMP" + echo "This script will not work properly without an existing TMP directory." +fi + this_host= # gets the machine's hostname and stores it in the variable "this_host". function get_our_hostname()