#! /bin/bash # check if ROOT is installed in fixed location: echo "testing ROOT..." if test "${ROOTSYS}"; then echo "found ROOT version `root-config --version` in directory `root-config --prefix`" fi # check if MSVC++ is installed: echo "testing MSVC++..." MSTMPDIR="`which cl.exe|sed 's,/BIN/cl\.exe$,,'`" MSVCDIR=`cygpath -w "${MSTMPDIR}"` VCINSTALLDIR=`cygpath -w ${MSTMPDIR} |sed 's,\\\\VC\?.$,,'` if test "${MSVCDIR}"; then echo "found MSVC++ in directory "${VCINSTALLDIR}"" # Then set the needed environment variables (if needed at all): OLD_PATH="$PATH" PATH="$PATH;$MSVCDIR\bin" PATH="$PATH;$VCINSTALLDIR\Common7\Tools" PATH="$PATH;$VCINSTALLDIR\Common7\Tools\Bin" PATH="$PATH:$OLD_PATH" export PATH OLD_INCLUDE="$INCLUDE" INCLUDE="$INCLUDE;$MSVCDIR\include" INCLUDE="$INCLUDE;$MSVCDIR\PlatformSDK\Include\prerelease" INCLUDE="$INCLUDE;$MSVCDIR\PlatformSDK\Include" if test x"$OLD_INCLUDE" != x; then INCLUDE="$INCLUDE;$OLD_INCLUDE" fi export INCLUDE OLD_LIB="$LIB" LIB="$LIB;$MSVCDIR\lib" LIB="$LIB;$MSVCDIR\PlatformSDK\lib\prerelease" LIB="$LIB;$MSVCDIR\PlatformSDK\lib" if test x"$OLD_LIB" != x; then LIB="$LIB;$OLD_LIB" fi export LIB # Uncomment these lines to verify... # echo "" # echo "PATH = $PATH" # echo "" # echo "INCLUDE = $INCLUDE" # echo "" # echo "LIB = $LIB" fi