X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fgenerator%2Fvis_stu_vars.sh;h=1fe1a43866bc073b3c86593c933583ce8a64d1d1;hb=350c5e348c3263a4d48307057e2de34166a53b04;hp=6d42e4c92a3ab73a3f22c5286f23858c68c191a4;hpb=4c3c1ebcea4f605039bb33c7233d413a34fc5305;p=feisty_meow.git diff --git a/scripts/generator/vis_stu_vars.sh b/scripts/generator/vis_stu_vars.sh index 6d42e4c9..1fe1a438 100644 --- a/scripts/generator/vis_stu_vars.sh +++ b/scripts/generator/vis_stu_vars.sh @@ -35,12 +35,15 @@ function setup_visual_studio_variables() if [ -z "$VSxTOOLS" ]; then return 33 fi - export VSxTOOLS="$(short_path "$VSxTOOLS" | tr "A-Z" "a-z" | sed -e 's/\\/\//g' | sed -e 's/^\(.\):/\/\1/' )" + export VSxTOOLS="$(short_path "$VSxTOOLS" | tr "A-Z" "a-z" | sed -e 's/\\/\//g' )" +#| sed -e 's/^\(.\):/\/\1/' )" - export VIS_STU_ROOT="$(echo $VSxTOOLS | sed -e 's/^\(.*\)\/[^\/]*\/[^\/]*[\/]$/\1/' | sed -e 's/^\(.\):/\/\1/' )" + export VIS_STU_ROOT="$(echo $VSxTOOLS | sed -e 's/^\(.*\)\/[^\/]*\/[^\/]*[\/]$/\1/' )" +#| sed -e 's/^\(.\):/\/\1/' )" export VSINSTALLDIR="$VIS_STU_ROOT" - export WINDIR="$(short_path "$WINDIR" | tr A-Z a-z | sed -e 's/\\/\//g' | sed -e 's/^\(.\):/\/\1/' )" + export WINDIR="$(short_path "$WINDIR" | tr A-Z a-z | sed -e 's/\\/\//g' )" +#| sed -e 's/^\(.\):/\/\1/' )" export VCINSTALLDIR="$VSINSTALLDIR/VC" export VSCOMMONROOT="$VSINSTALLDIR/Common7" @@ -53,7 +56,28 @@ function setup_visual_studio_variables() export PLATFORM_DIR="$VCINSTALLDIR/PlatformSDK" 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/' )" + +#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/' )" + + # 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" @@ -90,12 +114,8 @@ function setup_visual_studio_variables() ############## - #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 "calculated variables for dos/windoze builds:" + var VIS_STU_ROOT VSxTOOLS WINDIR VSxTOOLS VSINSTALLDIR PLATFORM_DIR FrameworkDir ############## }