From: Chris Koeritz Date: Tue, 10 Apr 2012 16:56:48 +0000 (-0400) Subject: updated to use private TMP folder to get around worthless cygwin issues. X-Git-Tag: 2.140.90~1431 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=37ff5eee71312893b981aed1a3998520007de5b5;p=feisty_meow.git updated to use private TMP folder to get around worthless cygwin issues. --- diff --git a/scripts/rev_control/rev_control.sh b/scripts/rev_control/rev_control.sh index 4b7b1ecc..6f4a1b41 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 +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()