rediscovered start-group and end-group to make linker multi-pass. may not work on
[feisty_meow.git] / scripts / rev_control / rev_control.sh
index 4b7b1ecc52e3bad67d1bf1d42849af457268fa55..f809f5f1513de993e598210f18a47eb83e949fa6 100644 (file)
@@ -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()