Changeset 24828
- Timestamp:
- 2011-11-30T17:03:17+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/gems.bat
r24827 r24828 1 1 @echo off 2 setlocal enabledelayedexpansion 3 2 4 color 0A 3 5 pushd "%CD%" … … 5 7 set GLILANG=en 6 8 7 :: 9 8 10 :: -------- Run the Greenstone Librarian Interface -------- 9 11 … … 44 46 echo. 45 47 echo Checking if the Greenstone collection directory is writable ... 46 (echo This is a temporary file. It is safe to delete it. > " %GSDLHOME%\collect\testing.tmp" ) 2>nul48 (echo This is a temporary file. It is safe to delete it. > "!GSDLHOME!\collect\testing.tmp" ) 2>nul 47 49 if exist "%GSDLHOME%\collect\testing.tmp" goto deleteTempFile 48 50 if "%1" == "Elevated" goto printWarning 49 51 echo ... FAILED 50 echo The %PROGNAME% cannot write to the collection directory ( %GSDLHOME%\collect)52 echo The %PROGNAME% cannot write to the collection directory (!GSDLHOME!\collect) 51 53 echo Requesting elevated status to become admin user to continue. 52 54 "%GSDLHOME%\bin\windows\gstart.exe" %0 Elevated %1 %2 %3 %4 %5 %6 %7 %8 %9 … … 55 57 :printWarning 56 58 echo ... FAILED 57 echo The %PROGNAME% cannot write to the log directory ( %GSDLHOME%\collect).59 echo The %PROGNAME% cannot write to the log directory (!GSDLHOME!\collect). 58 60 echo Attempting to continue without permissions. 59 61 goto shiftElevated … … 101 103 if not "%GSDL3SRCHOME%" == "" ( 102 104 echo GSDL3SRCHOME: 103 echo %GSDL3SRCHOME%105 echo !GSDL3SRCHOME! 104 106 echo. 105 107 ) … … 107 109 if not "%GSDL3HOME%" == "" ( 108 110 echo GSDL3HOME: 109 echo %GSDL3HOME%111 echo !GSDL3HOME! 110 112 echo. 111 113 ) … … 113 115 if not "%GSDLHOME%" == "" ( 114 116 echo GSDLHOME: 115 echo %GSDLHOME%117 echo !GSDLHOME! 116 118 echo. 117 119 ) … … 157 159 color 07 158 160 popd 161 162 endlocal
Note:
See TracChangeset
for help on using the changeset viewer.