Changeset 24829 for main/trunk/gli/gli.bat
- Timestamp:
- 2011-11-30T17:48:15+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/gli.bat
r23650 r24829 1 1 @echo off 2 setlocal enabledelayedexpansion 3 2 4 color 0A 3 5 set startdir=%CD% … … 48 50 echo. 49 51 echo Checking if the Greenstone collection directory is writable ... 50 (echo This is a temporary file. It is safe to delete it. > " %GSDLHOME%\collect\testing.tmp" ) 2>nul52 (echo This is a temporary file. It is safe to delete it. > "!GSDLHOME!\collect\testing.tmp" ) 2>nul 51 53 if exist "%GSDLHOME%\collect\testing.tmp" goto deleteTempFile 52 54 if "%1" == "Elevated" goto printWarning 53 55 echo ... FAILED 54 echo The %PROGNAME% cannot write to the collection directory ( %GSDLHOME%\collect)56 echo The %PROGNAME% cannot write to the collection directory (!GSDLHOME!\collect) 55 57 echo Requesting elevated status to become admin user to continue. 56 58 "%GSDLHOME%\bin\windows\gstart.exe" %0 Elevated %1 %2 %3 %4 %5 %6 %7 %8 %9 … … 59 61 :printWarning 60 62 echo ... FAILED 61 echo The %PROGNAME% cannot write to the log directory ( %GSDLHOME%\collect).63 echo The %PROGNAME% cannot write to the log directory (!GSDLHOME!\collect). 62 64 echo Attempting to continue without permissions. 63 65 goto shiftElevated … … 114 116 if not "%GSDL3SRCHOME%" == "" ( 115 117 echo GSDL3SRCHOME: 116 echo %GSDL3SRCHOME%118 echo !GSDL3SRCHOME! 117 119 echo. 118 120 ) … … 120 122 if not "%GSDL3HOME%" == "" ( 121 123 echo GSDL3HOME: 122 echo %GSDL3HOME%124 echo !GSDL3HOME! 123 125 echo. 124 126 ) … … 126 128 if not "%GSDLHOME%" == "" ( 127 129 echo GSDLHOME: 128 echo %GSDLHOME%130 echo !GSDLHOME! 129 131 echo. 130 132 ) … … 166 168 :localLib 167 169 if exist "%GSDLHOME%\server.exe" ( 168 set locallib= %GSDLHOME%\server.exe170 set locallib=!GSDLHOME!\server.exe 169 171 ) else ( 170 set locallib= %GSDLHOME%\gs2-web-server.bat172 set locallib=!GSDLHOME!\gs2-web-server.bat 171 173 ) 172 174 … … 211 213 cd "%startdir%" 212 214 set startdir= 215 216 endlocal
Note:
See TracChangeset
for help on using the changeset viewer.