ted.mielczarek%gmail.com 3c0bd42437 bug 418938 - rxvt is ugly as sin. r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@252199 18797224-902f-48f8-a5cc-f745e15eee43
2008-06-09 18:17:08 +00:00

45 lines
1.2 KiB
Batchfile
Executable File

@echo off
SET MOZ_MSVCVERSION=7.1
SET MOZBUILDDIR=%~dp0
SET MOZILLABUILD=%MOZBUILDDIR%
echo "Mozilla tools directory: %MOZBUILDDIR%"
REM Get MSVC paths
call "%MOZBUILDDIR%guess-msvc.bat"
if "%VC71DIR%"=="" (
ECHO "Microsoft Visual C++ version 7.1 was not found. Exiting."
pause
EXIT /B 1
)
REM Use the "new" moztools-static
set MOZ_TOOLS=%MOZBUILDDIR%moztools
rem append moztools to PATH
SET PATH=%PATH%;%MOZ_TOOLS%\bin
rem Prepend MSVC paths
call "%VC71DIR%\Bin\vcvars32.bat"
rem Prepend SDK paths if MOZBUILD_USE_SDK is defined and the SDK exists
if defined MOZBUILD_USE_SDK (
if not "%SDKDIR%"=="" (
rem Prepend SDK paths - Don't use the SDK SetEnv.cmd because it pulls in
rem random VC paths which we don't want.
rem Don't add '%SDKDIR%include\atl' to INCLUDE because VC7 has ATL headers
rem which don't require atlthunk.lib. This also makes it unnecessary to
rem append the atlthunk compat lib to LIB.
SET PATH=%SDKDIR%\bin;%PATH%
SET LIB=%SDKDIR%\lib;%LIB%
SET INCLUDE=%SDKDIR%\include;%INCLUDE%
)
)
cd "%USERPROFILE%"
%MOZILLABUILD%\msys\bin\bash --login -i