Changeset 26615
- Timestamp:
- 2013-01-09T13:34:58+13:00 (10 years ago)
- Location:
- main/trunk/greenstone2
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/makegs2.bat
r25525 r26615 5 5 :: This will be helpful during compiling if there are spaces (or brackets) in the filepath, 6 6 :: since apache's own batch scripts do not allow for the possibility of spaces or brackets. 7 command /c rem 7 if "%1"=="amd64" ( 8 cmd /c rem 9 ) else ( 10 command /c rem 11 ) 8 12 9 13 pushd "%CD%" … … 22 26 set SDK_ENV= 23 27 24 25 28 rem Checking for Winbin and Unzip utility 26 29 IF NOT EXIST .\bin\windows\*.* GOTO ENDNOWINBIN 27 IF NOT EXIST .\bin\windows\choice.exe GOTO ENDNOWINBIN 28 30 IF NOT EXIST .\bin\windows\choice32.exe GOTO ENDNOWINBIN 29 31 30 32 echo. … … 57 59 rem Ask the user to extract now or to directly compile 58 60 echo Do you want to extract the required packages (Recommended)? This will be the default action in 10 seconds. 59 .\bin\windows\choice.exe /T:Y,10 /C:YN61 if "%1"=="amd64" (.\bin\windows\choice64.exe /D Y /T 10 /C YN 60 62 IF errorlevel 2 GOTO COMPILE 61 63 IF errorlevel 1 GOTO UNZIP 62 64 IF errorlevel 0 GOTO END 65 ) else (.\bin\windows\choice32.exe /T:Y,10 /C:YN 66 IF errorlevel 2 GOTO COMPILE 67 IF errorlevel 1 GOTO UNZIP 68 IF errorlevel 0 GOTO END 69 ) 63 70 64 65 71 :UNZIP 66 72 IF NOT EXIST .\bin\windows\unzip.exe GOTO ENDNOUNZIP … … 145 151 echo. 146 152 echo Please choose a number from the menu. Otherwise both libraries will be compiled in 15 seconds. 147 .\bin\windows\choice.exe /N /T:3,15 /C:1234567153 if "%1"=="amd64" (.\bin\windows\choice64.exe /N /D 3 /T 15 /C 1234567 148 154 IF errorlevel 7 GOTO END 149 155 IF errorlevel 6 GOTO DOCLEAN … … 154 160 IF errorlevel 1 GOTO WITHLOCALLIB 155 161 IF errorlevel 0 GOTO END 162 ) else (.\bin\windows\choice32.exe /N /T:3,15 /C:1234567 163 IF errorlevel 7 GOTO END 164 IF errorlevel 6 GOTO DOCLEAN 165 IF errorlevel 5 GOTO WITHALLDEBUG 166 IF errorlevel 4 GOTO WITHALL 167 IF errorlevel 3 GOTO WITHAPACHE 168 IF errorlevel 2 GOTO WITHOUTLOCALLIB 169 IF errorlevel 1 GOTO WITHLOCALLIB 170 IF errorlevel 0 GOTO END 171 ) 156 172 157 173 :DOCLEAN … … 213 229 rem Ask to Unzip the packages now otherwise quit 214 230 echo Do you want to unzip these required packages now? This will be the default action in 10 seconds. 215 .\bin\windows\choice.exe /T:Y,10 /c:YN231 if "%1"=="amd64" (.\bin\windows\choice64.exe /D Y /T 10 /C YN 216 232 IF errorlevel 2 GOTO END 217 233 IF errorlevel 1 GOTO UNZIP 218 234 IF errorlevel 0 GOTO END 235 ) else (.\bin\windows\choice32.exe /T:Y,10 /c:YN 236 IF errorlevel 2 GOTO END 237 IF errorlevel 1 GOTO UNZIP 238 IF errorlevel 0 GOTO END 239 ) 219 240 220 241 :ENDNOWINBIN
Note:
See TracChangeset
for help on using the changeset viewer.