#!/bin/bash # spits out the root directory of visual studio, calculated from the common # tools directory that always seems to be reliably set. # the first parameter is required to be the path to clam's bin directory, # since that's been hosing up under win32 (like everything else does). "$1/short_path" "$VS80COMNTOOLS" | sed -e 's/\\/\//g' | sed -e 's/^\(.*\)\/[^\/]*\/[^\/]*[\/]$/\1/'