summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/build_icl12.bat40
-rw-r--r--build/build_vs2010.bat42
-rw-r--r--build/build_wdk.bat46
-rw-r--r--build/make_installer.bat32
-rw-r--r--build/make_zip.bat32
5 files changed, 91 insertions, 101 deletions
diff --git a/build/build_icl12.bat b/build/build_icl12.bat
index e014629..37c141b 100644
--- a/build/build_icl12.bat
+++ b/build/build_icl12.bat
@@ -26,29 +26,8 @@ IF /I "%~1"=="/help" GOTO SHOWHELP
IF /I "%~1"=="-help" GOTO SHOWHELP
IF /I "%~1"=="--help" GOTO SHOWHELP
IF /I "%~1"=="/?" GOTO SHOWHELP
-GOTO CHECKFIRSTARG
-:SHOWHELP
-TITLE "%~nx0 %1"
-ECHO. & ECHO.
-ECHO Usage: %~nx0 [Clean^|Build^|Rebuild] [x86^|x64^|all]
-ECHO.
-ECHO Notes: You can also prefix the commands with "-", "--" or "/".
-ECHO The arguments are case insesitive.
-ECHO. & ECHO.
-ECHO Executing "%~nx0" will use the defaults: "%~nx0 build all"
-ECHO.
-ECHO If you skip the second argument the default one will be used. Example:
-ECHO "%~nx0 rebuild" is equivalent to "%~nx0 rebuild all"
-ECHO.
-ECHO NOTE: "%~nx0 x86" won't work.
-ECHO.
-ENDLOCAL
-EXIT /B
-
-
-:CHECKFIRSTARG
rem Check for the first switch
IF "%~1" == "" (
SET "BUILDTYPE=Build"
@@ -137,6 +116,25 @@ IF %ERRORLEVEL% NEQ 0 CALL :SUBMSG "ERROR" "Compilation failed!"
EXIT /B
+:SHOWHELP
+TITLE "%~nx0 %1"
+ECHO. & ECHO.
+ECHO Usage: %~nx0 [Clean^|Build^|Rebuild] [x86^|x64^|all]
+ECHO.
+ECHO Notes: You can also prefix the commands with "-", "--" or "/".
+ECHO The arguments are case insesitive.
+ECHO. & ECHO.
+ECHO Executing "%~nx0" will use the defaults: "%~nx0 build all"
+ECHO.
+ECHO If you skip the second argument the default one will be used. Example:
+ECHO "%~nx0 rebuild" is equivalent to "%~nx0 rebuild all"
+ECHO.
+ECHO NOTE: "%~nx0 x86" won't work.
+ECHO.
+ENDLOCAL
+EXIT /B
+
+
:SUBMSG
ECHO. & ECHO ______________________________
ECHO [%~1] %~2
diff --git a/build/build_vs2010.bat b/build/build_vs2010.bat
index 7ba1c44..87ada56 100644
--- a/build/build_vs2010.bat
+++ b/build/build_vs2010.bat
@@ -19,35 +19,14 @@ CD /D %~dp0
rem Check the building environment
IF NOT DEFINED VS100COMNTOOLS CALL :SUBMSG "ERROR" "Visual Studio 2010 NOT FOUND!"
-rem check for the help switches
+rem Check for the help switches
IF /I "%~1"=="help" GOTO SHOWHELP
IF /I "%~1"=="/help" GOTO SHOWHELP
IF /I "%~1"=="-help" GOTO SHOWHELP
IF /I "%~1"=="--help" GOTO SHOWHELP
IF /I "%~1"=="/?" GOTO SHOWHELP
-GOTO CHECKFIRSTARG
-:SHOWHELP
-TITLE "%~nx0 %1"
-ECHO. & ECHO.
-ECHO Usage: %~nx0 [Clean^|Build^|Rebuild] [x86^|x64^|all]
-ECHO.
-ECHO Notes: You can also prefix the commands with "-", "--" or "/".
-ECHO The arguments are case insesitive.
-ECHO. & ECHO.
-ECHO Executing "%~nx0" will use the defaults: "%~nx0 build all"
-ECHO.
-ECHO If you skip the second argument the default one will be used. Example:
-ECHO "%~nx0 rebuild" is equivalent to "%~nx0 rebuild all"
-ECHO.
-ECHO NOTE: "%~nx0 x86" won't work.
-ECHO.
-ENDLOCAL
-EXIT /B
-
-
-:CHECKFIRSTARG
rem Check for the first switch
IF "%~1" == "" (
SET "BUILDTYPE=Build"
@@ -136,6 +115,25 @@ IF %ERRORLEVEL% NEQ 0 CALL :SUBMSG "ERROR" "Compilation failed!"
EXIT /B
+:SHOWHELP
+TITLE "%~nx0 %1"
+ECHO. & ECHO.
+ECHO Usage: %~nx0 [Clean^|Build^|Rebuild] [x86^|x64^|all]
+ECHO.
+ECHO Notes: You can also prefix the commands with "-", "--" or "/".
+ECHO The arguments are case insesitive.
+ECHO. & ECHO.
+ECHO Executing "%~nx0" will use the defaults: "%~nx0 build all"
+ECHO.
+ECHO If you skip the second argument the default one will be used. Example:
+ECHO "%~nx0 rebuild" is equivalent to "%~nx0 rebuild all"
+ECHO.
+ECHO NOTE: "%~nx0 x86" won't work.
+ECHO.
+ENDLOCAL
+EXIT /B
+
+
:SUBMSG
ECHO. & ECHO ______________________________
ECHO [%~1] %~2
diff --git a/build/build_wdk.bat b/build/build_wdk.bat
index 080c22b..f897858 100644
--- a/build/build_wdk.bat
+++ b/build/build_wdk.bat
@@ -28,32 +28,8 @@ IF /I "%~1"=="/help" GOTO SHOWHELP
IF /I "%~1"=="-help" GOTO SHOWHELP
IF /I "%~1"=="--help" GOTO SHOWHELP
IF /I "%~1"=="/?" GOTO SHOWHELP
-GOTO CHECKFIRSTARG
-:SHOWHELP
-TITLE "%~nx0 %1"
-ECHO. & ECHO.
-ECHO Usage: %~nx0 [Clean^|Build^|Rebuild] [x86^|x64^|all]
-ECHO.
-ECHO Notes: You can also prefix the commands with "-", "--" or "/".
-ECHO The arguments are case insesitive.
-ECHO. & ECHO.
-ECHO Edit "%~nx0" and set your WDK directory.
-ECHO You shouldn't need to make any changes other than that.
-ECHO. & ECHO.
-ECHO Executing "%~nx0" will use the defaults: "%~nx0 build all"
-ECHO.
-ECHO If you skip the second argument the default one will be used. Example:
-ECHO "%~nx0 rebuild" is equivalent to "%~nx0 rebuild all"
-ECHO.
-ECHO NOTE: "%~nx0 x86" won't work.
-ECHO.
-ENDLOCAL
-EXIT /B
-
-
-:CHECKFIRSTARG
rem Check for the first switch
IF "%~1" == "" (
SET "BUILDTYPE=Build"
@@ -179,6 +155,28 @@ IF %ERRORLEVEL% NEQ 0 CALL :SUBMSG "ERROR" "Compilation failed!"
EXIT /B
+:SHOWHELP
+TITLE "%~nx0 %1"
+ECHO. & ECHO.
+ECHO Usage: %~nx0 [Clean^|Build^|Rebuild] [x86^|x64^|all]
+ECHO.
+ECHO Notes: You can also prefix the commands with "-", "--" or "/".
+ECHO The arguments are case insesitive.
+ECHO. & ECHO.
+ECHO Edit "%~nx0" and set your WDK directory.
+ECHO You shouldn't need to make any changes other than that.
+ECHO. & ECHO.
+ECHO Executing "%~nx0" will use the defaults: "%~nx0 build all"
+ECHO.
+ECHO If you skip the second argument the default one will be used. Example:
+ECHO "%~nx0 rebuild" is equivalent to "%~nx0 rebuild all"
+ECHO.
+ECHO NOTE: "%~nx0 x86" won't work.
+ECHO.
+ENDLOCAL
+EXIT /B
+
+
:SUBMSG
ECHO. & ECHO ______________________________
ECHO [%~1] %~2
diff --git a/build/make_installer.bat b/build/make_installer.bat
index 90e31aa..8d1198c 100644
--- a/build/make_installer.bat
+++ b/build/make_installer.bat
@@ -21,30 +21,14 @@ rem Check the building environment
rem IF NOT EXIST "%PERL_PATH%" CALL :SUBMSG "INFO" "The Perl direcotry wasn't found; the addon won't be built"
IF NOT DEFINED VS100COMNTOOLS CALL :SUBMSG "ERROR" "Visual Studio 2010 wasn't found; the installer won't be built"
-rem check for the help switches
+rem Check for the help switches
IF /I "%~1"=="help" GOTO SHOWHELP
IF /I "%~1"=="/help" GOTO SHOWHELP
IF /I "%~1"=="-help" GOTO SHOWHELP
IF /I "%~1"=="--help" GOTO SHOWHELP
IF /I "%~1"=="/?" GOTO SHOWHELP
-GOTO CHECKFIRSTARG
-:SHOWHELP
-TITLE "%~nx0 %1"
-ECHO. & ECHO.
-ECHO Usage: %~nx0 [ICL12^|VS2010^|WDK]
-ECHO.
-ECHO Notes: You can also prefix the commands with "-", "--" or "/".
-ECHO The arguments are case insesitive.
-ECHO. & ECHO.
-ECHO Executing "%~nx0" will use the defaults: "%~nx0 WDK"
-ECHO.
-ENDLOCAL
-EXIT /B
-
-
-:CHECKFIRSTARG
rem Check for the first switch
IF "%~1" == "" (
SET INPUTDIRx86=bin\WDK\Release_x86
@@ -257,6 +241,20 @@ SET VerRev=%*
EXIT /B
+:SHOWHELP
+TITLE "%~nx0 %1"
+ECHO. & ECHO.
+ECHO Usage: %~nx0 [ICL12^|VS2010^|WDK]
+ECHO.
+ECHO Notes: You can also prefix the commands with "-", "--" or "/".
+ECHO The arguments are case insesitive.
+ECHO. & ECHO.
+ECHO Executing "%~nx0" will use the defaults: "%~nx0 WDK"
+ECHO.
+ENDLOCAL
+EXIT /B
+
+
:SUBMSG
ECHO. & ECHO ______________________________
ECHO [%~1] %~2
diff --git a/build/make_zip.bat b/build/make_zip.bat
index bef891a..9155314 100644
--- a/build/make_zip.bat
+++ b/build/make_zip.bat
@@ -16,30 +16,14 @@ rem ****************************************************************************
SETLOCAL
CD /D %~dp0
-rem check for the help switches
+rem Check for the help switches
IF /I "%~1"=="help" GOTO SHOWHELP
IF /I "%~1"=="/help" GOTO SHOWHELP
IF /I "%~1"=="-help" GOTO SHOWHELP
IF /I "%~1"=="--help" GOTO SHOWHELP
IF /I "%~1"=="/?" GOTO SHOWHELP
-GOTO CHECKFIRSTARG
-:SHOWHELP
-TITLE "make_zip.bat %1"
-ECHO. & ECHO.
-ECHO Usage: make_zip.bat [ICL12^|VS2010^|WDK]
-ECHO.
-ECHO Notes: You can also prefix the commands with "-", "--" or "/".
-ECHO The arguments are case insesitive.
-ECHO. & ECHO.
-ECHO Executing "make_zip.bat" will use the defaults: "make_zip.bat WDK"
-ECHO.
-ENDLOCAL
-EXIT /B
-
-
-:CHECKFIRSTARG
rem Check for the first switch
IF "%~1" == "" (
SET INPUTDIRx86=bin\WDK\Release_x86
@@ -229,6 +213,20 @@ SET VerRev=%*
EXIT /B
+:SHOWHELP
+TITLE "make_zip.bat %1"
+ECHO. & ECHO.
+ECHO Usage: make_zip.bat [ICL12^|VS2010^|WDK]
+ECHO.
+ECHO Notes: You can also prefix the commands with "-", "--" or "/".
+ECHO The arguments are case insesitive.
+ECHO. & ECHO.
+ECHO Executing "make_zip.bat" will use the defaults: "make_zip.bat WDK"
+ECHO.
+ENDLOCAL
+EXIT /B
+
+
:SUBMSG
ECHO. & ECHO ______________________________
ECHO [%~1] %~2