diff make/windows/build.bat @ 1415:39e409a664b3

6938185: 3/4 6923488 breaks Windows command shell builds Summary: Fix build.bat so invoking command shell doesn't exit on error. Fix dirname assumptions. Document some MKS environment dependencies. Reviewed-by: coleenp
author dcubed
date Thu, 25 Mar 2010 16:27:12 -0700
parents 21141e23627a
children c18cbe5936b8
line wrap: on
line diff
--- a/make/windows/build.bat	Tue Mar 16 17:47:03 2010 -0600
+++ b/make/windows/build.bat	Thu Mar 25 16:27:12 2010 -0700
@@ -28,6 +28,9 @@
 REM Since we don't have uname and we could be cross-compiling,
 REM Use the compiler to determine which ARCH we are building
+REM Note: Running this batch file from the Windows command shell requires
+REM that "grep" be accessible on the PATH. An MKS install does this.
 cl 2>&1 | grep "IA-64" >NUL
 if %errorlevel% == 0 goto isia64
 cl 2>&1 | grep "AMD64" >NUL
@@ -109,7 +112,7 @@
 echo bootstrap_dir is a full path to a JDK in which bin/java 
 echo   and bin/javac are present and working, and build_id is an 
 echo   optional build identifier displayed by java -version
-exit 1
+exit /b 1
-exit %errorlevel%
+exit /b %errorlevel%