From 37ff5eee71312893b981aed1a3998520007de5b5 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 10 Apr 2012 12:56:48 -0400 Subject: [PATCH] updated to use private TMP folder to get around worthless cygwin issues. --- scripts/rev_control/rev_control.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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() -- 2.34.1