#!/bin/bash # this file attempts to provide all of the variables needed for compiling # with the microsoft visual studio compiler (dot net version). it requires # one environment variable (called VS80COMNTOOLS) be set that points at the # location of the common tools in the visual studio installation. function print_usage { echo "VS80COMNTOOLS variable is not set. This usually means that the" echo "visual studio compiler is not installed." echo "" } if [ -z "$VS80COMNTOOLS" ]; then print_usage return 33 fi #echo "common tools dir is \"$VS80COMNTOOLS\"" export VIS_STU_ROOT=`"$REPOSITORY_DIR/bin/short_path.exe" "$VS80COMNTOOLS" | tr "A-Z" "a-z" | sed -e 's/^\\(.*\)\\/[^\/]*\\/[^\/]*[\/]$/\\1/' | sed -e 's/^\\(.\\):/\\/\\1/' ` export VSINSTALLDIR=$VIS_STU_ROOT #echo root of visual studio is $VSINSTALLDIR export VS80COMNTOOLS=`"$REPOSITORY_DIR/bin/short_path.exe" "$VS80COMNTOOLS" | tr "A-Z" "a-z" | sed -e 's/\\\\/\\//g' | sed -e 's/^\\(.\\):/\\/\\1/' ` #echo cleaned comn tools is $VS80COMNTOOLS export WINDIR=`"$REPOSITORY_DIR/bin/short_path.exe" "$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 export DevEnvDir=$VSCOMMONROOT/IDE export MSVCDir=$VCINSTALLDIR export FrameworkDir=$WINDIR/Microsoft.NET/Framework export FrameworkVersion=v2.0.50727 export FrameworkSDKDir=$VSINSTALLDIR/SDK/v2.0 export PATH="$PATH:$DevEnvDir:$VCINSTALLDIR/BIN:$VS80COMNTOOLS:$VS80COMNTOOLS/bin:$FrameworkSDKDir/bin:$FrameworkDir/$FrameworkVersion:$VCINSTALLDIR/VCPackages:$VSINSTALLDIR/Common7/Tools" export INCLUDE="$VCINSTALLDIR/ATLMFC/INCLUDE:$VCINSTALLDIR/INCLUDE:$VCINSTALLDIR/PlatformSDK/include:$FrameworkSDKDir/include:$INCLUDE" export LIB="$VCINSTALLDIR/ATLMFC/LIB:$VCINSTALLDIR/LIB:$VCINSTALLDIR/PlatformSDK/lib:$FrameworkSDKDir/lib:$LIB" #echo "path now is $PATH"