updated to get closer to building using cygwin, which is difficult because
[feisty_meow.git] / scripts / generator / build_variables.sh
index 8723e454317350c115e40a1769c9d03a62ae7594..c21f1b781302592de3851d42ecd116dc6fb1ee51 100644 (file)
@@ -71,13 +71,6 @@ export CLAM_DIR="$(cd $BUILD_SCRIPTS_DIR/../clam ; \pwd)"
 # synonym to make other builds happy.
 export BUILDER_DIR="$BUILDING_HIERARCHY"
 
-# guess the current platform.
-#IS_UNIX=$(uname | grep -i linux)
-#if [ -z "$IS_UNIX" ]; then IS_UNIX=$(uname | grep -i unix); fi
-#if [ -z "$IS_UNIX" ]; then IS_UNIX=$(uname | grep -i darwin); fi
-#IS_DOS=$(uname | grep -i ming)
-#if [ -z "$IS_DOS" ]; then IS_DOS=$(uname | grep -i cygwin); fi
-
 # set some clam parameters for compilation.  if the script can't guess the
 # right configuration, then you will need to set them in the last 'else'
 # below.
@@ -95,6 +88,11 @@ if [ ! -z "$SHELL_DEBUG" ]; then
   echo "[FEISTY_MEOW_DIR is $FEISTY_MEOW_DIR]"
 fi
 
+if [ "$OPERATING_SYSTEM" == "WIN32" ]; then
+  # harsh on the paths and make them use backwards slashes.
+  export SERIOUS_SLASH_TREATMENT=true
+fi
+
 # new BUILD_TOP variable points at the utter top-most level of any files
 # in the building hierarchy.
 export BUILD_TOP="$FEISTY_MEOW_DIR"