Author: mladen.turk(a)jboss.com
Date: 2007-12-13 05:29:50 -0500 (Thu, 13 Dec 2007)
New Revision: 1196
Modified:
trunk/build/windows/build.bat
Log:
Allow to specify the cygwin root path
Modified: trunk/build/windows/build.bat
===================================================================
--- trunk/build/windows/build.bat 2007-12-13 08:38:50 UTC (rev 1195)
+++ trunk/build/windows/build.bat 2007-12-13 10:29:50 UTC (rev 1196)
@@ -45,7 +45,7 @@
echo.
@if "%TOOLS_ROOT%" == "" set TOOLS_ROOT=C:\opt
-@if not exist "%TOOLS_ROOT%\NUL" goto cmdSetTools
+@if exist "%TOOLS_ROOT%\NUL" goto cmdSetTools
echo TOOLS_ROOT points to invalid directory %TOOLS_ROOT%
goto cmdEnd
@@ -54,10 +54,16 @@
set MSVS8VC=%TOOLS_ROOT%\MSVS8\VC
set MSVS6VC=%TOOLS_ROOT%\MSVS6
set MSWPSDK=%TOOLS_ROOT%\PSDK6
-
set BUILD_OS=windows
-set PATH=C:\cygwin\bin;%PATH%
+@if "%CYGWIN_INSTALL_DIR%" == "" set CYGWIN_INSTALL_DIR=C:\cygwin
+@if exist "%CYGWIN_INSTALL_DIR%\NUL" goto cmdFoundCygwin
+echo CYGWIN_INSTALL_DIR points to invalid directory %CYGWIN_INSTALL_DIR%
+goto cmdEnd
+
+:cmdFoundCygwin
+set PATH=%CYGWIN_INSTALL_DIR%\bin;%PATH%
+
set CRT_REDIST=
set USE_PLATFORM_SDK=
set APR_DECLARE_STATIC=