X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fgenerator%2Fvis_stu_vars.sh;h=1989f7566bc54d0b9165076e461a0de8e0829354;hb=c957a4bb5861666f963dc1334046427132afcc52;hp=670c04ca256c91b11b36da6048f3f3eab2cfc84e;hpb=8f4a9f51cb240261e612504322fa250adf184884;p=feisty_meow.git diff --git a/scripts/generator/vis_stu_vars.sh b/scripts/generator/vis_stu_vars.sh index 670c04ca..1989f756 100644 --- a/scripts/generator/vis_stu_vars.sh +++ b/scripts/generator/vis_stu_vars.sh @@ -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,31 @@ 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=$(unix_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. + +# 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 "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 +##############