This will allow you to use csc.exe from a Cygwin prompt on a Win32 machine, and therefore build mcs from CVS. The script is attached.
--
David B. Bitton
[EMAIL PROTECTED]
www.codenoevil.com
Code Made Fresh Daily�
#!/bin/bash VSINSTALLDIR="/cygdrive/c/Program Files/Microsoft Visual Studio .NET/Common7/IDE" VCINSTALLDIR="/cygdrive/c/Program Files/Microsoft Visual Studio .NET" FrameworkDir="/cygdrive/c/WINDOWS/Microsoft.NET/Framework" FrameworkVersion="v1.0.3705" FrameworkSDKDir="/cygdrive/c/Program Files/Microsoft Visual Studio .NET/FrameworkSDK" # Root of Visual Studio common files.
if [ "x$VSINSTALLDIR" = "x" ]; then
echo "VSINSTALLDIR variable is not set"
echo ""
echo "SYNTAX: vsvars32.sh path"
exit -1
fi
if [ "x$VCINSTALLDIR" = "x" ]; then
VCINSTALLDIR=$VSINSTALLDIR
fi
#
# Root of Visual Studio ide installed files.
#
DevEnvDir=$VSINSTALLDIR
#
# Root of Visual C++ installed files.
#
MSVCDir=$VCINSTALLDIR/VC7
#
echo "Setting environment for using Microsoft Visual Studio .NET tools."
echo "(If you also have Visual C++ 6.0 installed and wish to use its tools"
echo "from the command line, run vcvars32.bat for Visual C++ 6.0.)"
#
# $VCINSTALLDIR/Common7/Tools dir is added only for real setup.
PATH=$DevEnvDir:$MSVCDir/BIN:$VCINSTALLDIR/Common7/Tools:$VCINSTALLDIR/Common7/Tools/bin/prerelease:$VCINSTALLDIR/Common7/Tools/bin:$FrameworkSDKDir/bin:$FrameworkDir/$FrameworkVersion:$PATH
INCLUDE=$INCLUDE:$MSVCDir/ATLMFC/INCLUDE:$MSVCDir/INCLUDE:$MSVCDir/PlatformSDK/include/prerelease:$MSVCDir/PlatformSDK/include:$FrameworkSDKDir/include
LIB=$LIB:$MSVCDir/ATLMFC/LIB:$MSVCDir/LIB:$MSVCDir/PlatformSDK/lib/prerelease:$MSVCDir/PlatformSDK/lib:$FrameworkSDKDir/lib
export PATH INCLUDE LIB
