2 # spits out the root directory of visual studio, calculated from the common
3 # tools directory that always seems to be reliably set.
5 # code stolen from vis_stu_vars...
6 if [ -z "$VSxTOOLS" ]; then
7 export VSxTOOLS="$VS90COMNTOOLS"
8 if [ -z "$VSxTOOLS" ]; then
9 export VSxTOOLS="$VS80COMNTOOLS"
12 if [ -z "$VSxTOOLS" ]; then
13 #echo Failure to locate visual studio tools.
14 # don't want to echo anything; need to be able to check that this provided nothing.
18 short_path "$VSxTOOLS" | sed -e 's/\\/\//g' | sed -e 's/^\(.*\)\/[^\/]*\/[^\/]*[\/]$/\1/'