benjamin%smedbergs.us ad1a91d013 Bug 366852 - MozillaBuild start scripts should launch bash (which means copying /bin/sh to /bin/bash), r=luser
git-svn-id: svn://10.0.0.236/trunk@221547 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-08 15:27:08 +00:00

47 lines
1.4 KiB
Batchfile
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
SET MOZ_MSVCVERSION=7.1
SET MOZILLABUILDDRIVE=%~d0%
SET MOZILLABUILDPATH=%~p0%
SET MOZILLABUILD=%MOZILLABUILDDRIVE%%MOZILLABUILDPATH%
echo "Mozilla tools directory: %MOZILLABUILD%"
REM Get MSVC paths
call "%MOZILLABUILD%\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=%MOZILLABUILD%\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%"
start "MSYS Shell - MSVC7.1 Environment" "%MOZILLABUILD%\msys\bin\rxvt" -backspacekey  -sl 2500 -fg %FGCOLOR% -bg %BGCOLOR% -sr -fn "Lucida Console" -tn msys -geometry 80x25 -e /bin/bash --login -i