#!/bin/sh # Run MSVC 7.1 (cl 13.10.3077) under Wine. # Usage: tools/cl.sh (paths may be POSIX; they're passed through winepath-free via Z:) ROOT=$(cd "$(dirname "$0")/.." && pwd) MSVC="$ROOT/tools/msvc7.1" [ -x "$MSVC/Bin/cl.exe" ] || { echo "MSVC 7.1 not found in $MSVC (run tools/setup.sh)" >&2; exit 1; } export WINEDEBUG=-all export INCLUDE="Z:$(echo "$MSVC/Include" | tr / '\\')" export PATH_MSVC="$MSVC/Bin" exec wine "$MSVC/Bin/cl.exe" "$@"