ha! now have support for finding non-checked-in files in git repositories for rev_re...
[feisty_meow.git] / scripts / generator / vis_stu_vars.sh
index e5c6322ddeddb2ad91a9fc3fbad14eff4aa319df..2ab5ba08829116628157a5254543923ec7fe0076 100644 (file)
@@ -60,7 +60,23 @@ function setup_visual_studio_variables()
 #on hold:    export PLATFORM_DIR="$(short_path "$PROGRAMFILES/Microsoft SDKs/Windows/v7.0A" | tr "A-Z" "a-z" | sed -e 's/^\(.*\)\/[^\/]*\/[^\/]*[\/]$/\1/' )"
 ##| sed -e 's/^\(.\):/\/\1/' )"
 
-export PLATFORM_DIR="c:\progra~2\micros~1\windows\v7.0a"
+    # guess at where we can find this damned directory in its short form.
+#hmmm: this is needed until there's a replacement for short path, or we can build again.
+    export PLATFORM_DIR="c:/progra~2/micros~1/windows/v7.0a"
+    if [ ! -d "$PLATFORM_DIR" ]; then
+      PLATFORM_DIR="c:/progra~1/micros~1/windows/v7.0a"
+      if [ ! -d "$PLATFORM_DIR" ]; then
+        PLATFORM_DIR="c:/progra~1/micros~2/windows/v7.0a"
+        if [ ! -d "$PLATFORM_DIR" ]; then
+          PLATFORM_DIR="c:/progra~2/micros~2/windows/v7.0a"
+        fi
+      fi
+    fi
+
+    if [ ! -d "$PLATFORM_DIR" ]; then
+      echo "*** Failure to calculate the platform directory based on several attempts using c:\\program files\\microsoft sdks\\windows\\v7.0a as the basic pattern"
+    fi
+  
 
   fi
   export WindowsSdkDir="$PLATFORM_DIR"
@@ -83,31 +99,10 @@ export PLATFORM_DIR="c:\progra~2\micros~1\windows\v7.0a"
     # the redirection of stderr to null is to get around an obnoxious cygwin
     # warning that seems to be erroneously complaining about backslashes.
   
-  # convert all other relevant paths back to dos form, or visual studio barfs.
-  #export BUILD_SCRIPTS_DIR=$(unix_to_dos_path $BUILD_SCRIPTS_DIR)
-  #export BUILDING_HIERARCHY=$(unix_to_dos_path $BUILDING_HIERARCHY)
-  #export BUILDER_DIR=$(unix_to_dos_path $BUILDER_DIR)
-  #export BUILD_TOP=$(unix_to_dos_path $BUILD_TOP)
-  #export PRODUCTION_DIR=$(unix_to_dos_path $PRODUCTION_DIR)
-  #export LOGS_DIR=$(unix_to_dos_path $LOGS_DIR)
-  #export TOOL_SOURCES=$(unix_to_dos_path $TOOL_SOURCES)
-  #export BINARY_DIR=$(unix_to_dos_path $BINARY_DIR)
-  #export TARGETS_DIR=$(unix_to_dos_path $TARGETS_DIR)
-  #export INTERMEDIATE_EXE_DIR=$(unix_to_dos_path $INTERMEDIATE_EXE_DIR)
-  #export WASTE_DIR=$(unix_to_dos_path $WASTE_DIR)
-  
   ##############
   
-  echo "visual studio root is '$VIS_STU_ROOT'"
-  echo "common tools dir is '$VSxTOOLS'"
-  echo "cleaned windir is '$WINDIR'"
-  echo "cleaned comn tools is '$VSxTOOLS'"
-  echo "root of visual studio is '$VSINSTALLDIR'"
-  echo "platform dir is '$PLATFORM_DIR'"
-  echo "framedir now '$FrameworkDir'"
-
-echo new report style:
-var VIS_STU_ROOT VSxTOOLS WINDIR VSxTOOLS VSINSTALLDIR PLATFORM_DIR FrameworkDir
+  echo "calculated variables for dos/windoze builds:"
+  var VIS_STU_ROOT VSxTOOLS WINDIR VSxTOOLS VSINSTALLDIR PLATFORM_DIR FrameworkDir
   
   ##############
 }