Changeset 23665
- Timestamp:
- 2011-02-03T17:55:45+13:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/setup.bat
r23652 r23665 96 96 97 97 :End 98 popd99 98 endlocal & set PATH=%PATH%& set GSDLHOME=%GSDLHOME%& set GSDLOS=%GSDLOS% 100 99 101 pushd 100 set savedir=%CD% 102 101 cd "%GSDLHOME%" 103 if exist ext ( 104 for /D %%e IN ("ext/*") do ( 105 cd "ext\%%e" 106 if EXIST setup.bat call setup.bat 107 cd ..\.. 108 ) 102 if exist ext ( 103 for /D %%e IN ("ext/*") do call :addexts %%e 109 104 ) 110 popd 105 cd "%savedir%" 106 set savedir= 107 goto :doneexts 111 108 109 :addexts 110 set folder=%1 111 cd "ext\%folder%" 112 if EXIST setup.bat call setup.bat 113 cd ..\.. 114 goto :eof 115 116 :doneexts 112 117 setlocal enabledelayedexpansion 113 pushd 114 cd "%GSDLHOME%" 115 if exist apache-httpd ( 118 119 if exist "%GSDLHOME%\apache-httpd" ( 116 120 echo +Adding in executable path for apache-httpd 117 121 set PATH=!GSDLHOME!\apache-httpd\!GSDLOS!\bin;!PATH! … … 119 123 ) 120 124 121 if exist local(122 if exist local\setup.bat(125 if exist "%GSDLHOME%\local" ( 126 if exist "!GSDLHOME!\local\setup.bat" ( 123 127 echo. 124 echo Running local\setup.bat125 cd local128 echo Running !GSDLHOME!\local\setup.bat 129 cd "!GSDLHOME!\local" 126 130 call setup.bat 127 cd ..131 cd "!GSDLHOME!" 128 132 ) 129 133 set PATH=!GSDLHOME!\local\bin;!PATH! 130 134 ) 131 popd132 135 133 136 :: test writability of GSDLHOME 134 137 @call "!GSDLHOME!\bin\script\checkwritability.bat" 138 popd 135 139 endlocal & set PATH=%PATH%& set GSDLHOME=%GSDLHOME%& set GSDLOS=%GSDLOS%
Note:
See TracChangeset
for help on using the changeset viewer.