2006-12-14 23:44:58 +03:00
|
|
|
|
@echo off
|
|
|
|
|
|
|
|
|
|
SET MOZ_MSVCVERSION=6
|
2008-02-04 16:02:19 +03:00
|
|
|
|
SET MOZBUILDDIR=%~dp0
|
2006-12-14 23:44:58 +03:00
|
|
|
|
|
2008-02-04 16:02:19 +03:00
|
|
|
|
echo "Mozilla tools directory: %MOZBUILDDIR%"
|
2006-12-14 23:44:58 +03:00
|
|
|
|
|
|
|
|
|
REM Get MSVC paths
|
2008-02-04 16:02:19 +03:00
|
|
|
|
call "%MOZBUILDDIR%guess-msvc.bat"
|
2006-12-14 23:44:58 +03:00
|
|
|
|
|
2007-01-04 20:06:35 +03:00
|
|
|
|
if "%VC6DIR%"=="" (
|
2006-12-14 23:44:58 +03:00
|
|
|
|
ECHO "Microsoft Visual C++ version 6 was not found. Exiting."
|
|
|
|
|
pause
|
|
|
|
|
EXIT /B 1
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
REM For MSVC6, we use the "old" non-static moztools
|
2008-02-04 16:02:19 +03:00
|
|
|
|
set MOZ_TOOLS=%MOZBUILDDIR%moztools-180compat
|
2006-12-14 23:44:58 +03:00
|
|
|
|
|
|
|
|
|
rem append moztools to PATH
|
|
|
|
|
SET PATH=%PATH%;%MOZ_TOOLS%\bin
|
|
|
|
|
|
|
|
|
|
rem Prepend MSVC paths
|
|
|
|
|
call "%VC6DIR%\Bin\vcvars32.bat"
|
|
|
|
|
|
|
|
|
|
cd "%USERPROFILE%"
|
2008-02-04 16:02:19 +03:00
|
|
|
|
start "MSYS Shell - MSVC6 Environment" "%MOZBUILDDIR%msys\bin\rxvt" -backspacekey -sl 2500 -fg %FGCOLOR% -bg %BGCOLOR% -sr -fn "Courier New" -tn msys -geometry 80x25 -e /bin/bash --login -i
|