X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fgenerator%2Fvis_stu_vars.sh;h=1134e5398c4e4ce6d6109347fb06b96b5ea8d7d5;hb=49c7386493690343410ccc51f3c527429f5c00ff;hp=bb5dbc014b42339cd1deb84855a76f5773e5a240;hpb=98665374b13d0b7b32642ac7948580028edfe58a;p=feisty_meow.git diff --git a/scripts/generator/vis_stu_vars.sh b/scripts/generator/vis_stu_vars.sh old mode 100755 new mode 100644 index bb5dbc01..1134e539 --- a/scripts/generator/vis_stu_vars.sh +++ b/scripts/generator/vis_stu_vars.sh @@ -12,8 +12,8 @@ function print_usage { echo "" } -chmod 755 $PRODUCTION_DIR/win32_help/*.exe -export PATH=$PRODUCTION_DIR/win32_help:$PATH +chmod 755 $PRODUCTION_DIR/win32_helper/*.exe +export PATH=$PRODUCTION_DIR/win32_helper:$PATH # we try to use the most recent compiler location, and work backwards as # needed for the supported range (10 = vs 2010, 9 = vs 2008, 8 = vs 2005). @@ -29,18 +29,12 @@ if [ -z "$VSxTOOLS" ]; then print_usage return 33 fi -#echo "common tools dir is \"$VSxTOOLS\"" export VSxTOOLS="$(short_path "$VSxTOOLS" | tr "A-Z" "a-z" | sed -e 's/\\/\//g' | sed -e 's/^\(.\):/\/\1/' )" -#echo cleaned comn tools is $VSxTOOLS export VIS_STU_ROOT="$(echo $VSxTOOLS | sed -e 's/^\(.*\)\/[^\/]*\/[^\/]*[\/]$/\1/' | sed -e 's/^\(.\):/\/\1/' )" export VSINSTALLDIR="$VIS_STU_ROOT" -#echo root of visual studio is $VSINSTALLDIR export WINDIR="$(short_path "$WINDIR" | sed -e 's/\\/\//g' | sed -e 's/^\(.\):/\/\1/' )" -#echo cleaned windir is $WINDIR - -#echo "prior path is $PATH" export VCINSTALLDIR="$VSINSTALLDIR/VC" export VSCOMMONROOT="$VSINSTALLDIR/Common7" @@ -56,11 +50,9 @@ if [ ! -d "$PLATFORM_DIR" ]; then export PLATFORM_DIR="$(short_path "$PROGRAMFILES/Microsoft SDKs/Windows/v7.0A" | tr "A-Z" "a-z" | sed -e 's/^\(.*\)\/[^\/]*\/[^\/]*[\/]$/\1/' | sed -e 's/^\(.\):/\/\1/' )" fi export WindowsSdkDir="$PLATFORM_DIR" -#echo platform dir is $PLATFORM_DIR #echo "path before is $PATH" export PATH="$DevEnvDir:$VCINSTALLDIR/BIN:$VSxTOOLS:$VSxTOOLS/bin:$FrameworkDir/$FrameworkVersion:$FrameworkDir/v3.5:$VCINSTALLDIR/VCPackages:$VSINSTALLDIR/Common7/Tools:$PLATFORM_DIR/bin:$PATH" -#hmmm: yuck! wake me up when we don't need all of those in the path. #echo "path after is $PATH" export INCLUDE="$VCINSTALLDIR/ATLMFC/INCLUDE:$VCINSTALLDIR/INCLUDE:$PLATFORM_DIR/include" @@ -70,9 +62,34 @@ export LIB="$VCINSTALLDIR/ATLMFC/LIB:$VCINSTALLDIR/LIB:$PLATFORM_DIR/lib" #:$FrameworkSDKDir/lib" # convert framework dir back or things yell like hell. -export FrameworkDir="$(echo $FrameworkDir | sed -e 's/^\/\(.\)[\\\/]\(.*\)$/\1:\\\2/' | tr "/" "\\" 2>/dev/null )" +export FrameworkDir=$(msys_to_dos_path $FrameworkDir) # the redirection of stderr to null is to get around an obnoxious cygwin # warning that seems to be erroneously bitching about backslashes. + +# mark this as executable because we will need it. +#chmod 755 $FEISTY_MEOW_SCRIPTS/generator/wrapdoze.sh + +# convert all other relevant paths back to dos form, or visual studio barfs. +#export BUILD_SCRIPTS_DIR=$(msys_to_dos_path $BUILD_SCRIPTS_DIR) +#export BUILDING_HIERARCHY=$(msys_to_dos_path $BUILDING_HIERARCHY) +#export BUILDER_DIR=$(msys_to_dos_path $BUILDER_DIR) +#export BUILD_TOP=$(msys_to_dos_path $BUILD_TOP) +#export PRODUCTION_DIR=$(msys_to_dos_path $PRODUCTION_DIR) +#export LOGS_DIR=$(msys_to_dos_path $LOGS_DIR) +#export TOOL_SOURCES=$(msys_to_dos_path $TOOL_SOURCES) +#export BINARY_DIR=$(msys_to_dos_path $BINARY_DIR) +#export TARGETS_DIR=$(msys_to_dos_path $TARGETS_DIR) +#export INTERMEDIATE_EXE_DIR=$(msys_to_dos_path $INTERMEDIATE_EXE_DIR) +#export WASTE_DIR=$(msys_to_dos_path $WASTE_DIR) + +############## + +#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 +##############