minor tweaks in TMP and TEMP environment variables.
authorGengbin Zheng <gzheng@illinois.edu>
Tue, 22 Jul 2003 04:11:10 +0000 (04:11 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Tue, 22 Jul 2003 04:11:10 +0000 (04:11 +0000)
src/arch/win32/unix2nt_cc

index e4302600e7a48222ad318dfb3842c39b52b4f293..c5e85c65d4331b9acde8f6e2da07cd93afbf8b33 100755 (executable)
 ##############################################################################
 
 #TMP environment variable seems get lost in sub shell
-export TMP=/tmp
+export TMP=`cygpath -w /tmp`
+export TEMP=`cygpath -w /tmp`
+if [ ! -d "$TMP" ]
+then
+       echo "Error no $TMP"
+       echo "unix2nt_cc exiting..." 1>&2
+       exit 1
+fi
 
 # Configurable option: Location of MSDEV
 VCC_DIR="C:/Program Files/Microsoft Visual Studio/Vc98"