[18996] | 1 | @echo off
|
---|
| 2 | pushd "%CD%"
|
---|
| 3 | CD /D "%~dp0"
|
---|
| 4 |
|
---|
| 5 | if "x%GSDLHOME%" == "x" (
|
---|
| 6 | REM This extension needs to have the main GSDL setup.bat sourced
|
---|
| 7 |
|
---|
| 8 | echo Greenstone environment variable GSDLHOME not set.
|
---|
| 9 | echo Have you sourced the main installation\'s setup file, e.g. setup.bat?
|
---|
| 10 | goto ErrorExitNeg1
|
---|
| 11 | )
|
---|
| 12 |
|
---|
[21173] | 13 | if "x%$APACHE_HTTPD_HOME%" == "x" (
|
---|
| 14 | set APACHE_HTTPD_HOME=%GSDLHOME%\apache-httpd\windows
|
---|
| 15 | )
|
---|
| 16 |
|
---|
[18996] | 17 | if not exist "%GSDLHOME%\apache-httpd" (
|
---|
| 18 | REM ... and it also needs to have been configured with --enable-apache-httpd
|
---|
| 19 | REM This is because the entension needs to add mod_flvx to the web server
|
---|
| 20 |
|
---|
[21173] | 21 | echo Warning: Could not find the directory "%GSDLHOME%\apache-httpd"
|
---|
| 22 | echo Has the main Greenstone been configure for this?
|
---|
| 23 | echo e.g. nmake /f win32.mak APACHE_HTTPD=1 [... other options]
|
---|
| 24 | echo.
|
---|
| 25 | echo => Only the build-time code for the extension will be compiled
|
---|
| 26 | set APACHE_HTTPD_HOME=
|
---|
[18996] | 27 | )
|
---|
| 28 |
|
---|
| 29 |
|
---|
| 30 | REM call cascade-make/bin/script/test-setup.bat
|
---|
| 31 | call cascade-make/lib/cascade-lib.bat
|
---|
| 32 |
|
---|
| 33 | :: Guaranteed that GSDLOS has now been set
|
---|
| 34 |
|
---|
| 35 |
|
---|
[21173] | 36 | echo "Test for directory in Windows might not be correct syntax!!"
|
---|
| 37 | if not exist "%GEXTVIDEO_INSTALLED%" (
|
---|
| 38 | echo Creating %GEXTVIDEO_INSTALLED%
|
---|
| 39 | mkdir "%GEXTVIDEO_INSTALLED%"
|
---|
[18996] | 40 | )
|
---|
| 41 |
|
---|
[21173] | 42 | set dirlist=build-srcpack
|
---|
| 43 |
|
---|
| 44 | if "x%APACHE_HTTPD_HOME%" != "x" (
|
---|
| 45 | set dirlist=%dirlist% runtime-srcpack
|
---|
| 46 | )
|
---|
| 47 |
|
---|
[18996] | 48 | if exist "devel-srcpack" (
|
---|
| 49 | set dirlist=%dirlist% devel-srcpack
|
---|
| 50 | )
|
---|
| 51 |
|
---|
| 52 | for /D %%d IN (%dirlist%) do (
|
---|
| 53 | echo Running %%d\CASCADE-MAKE.bat %*
|
---|
| 54 |
|
---|
| 55 | (cd %%d && call CASCADE-MAKE.bat %* && cd ..)
|
---|
| 56 |
|
---|
| 57 | if not ERRORLEVEL 0 (
|
---|
| 58 | echo Error encountered running %%d\CASCADE-MAKE.bat
|
---|
| 59 | goto ErrorExitPos1
|
---|
| 60 | )
|
---|
| 61 | )
|
---|
| 62 |
|
---|
| 63 |
|
---|
| 64 | if "%install%" == "1" (
|
---|
| 65 | type NOTES.txt
|
---|
| 66 | )
|
---|
| 67 | goto End
|
---|
| 68 |
|
---|
| 69 | :ErrorExitNeg1
|
---|
| 70 | set ERRORLEVEL=-1
|
---|
| 71 | goto End
|
---|
| 72 |
|
---|
| 73 | :ErrorExitPos1
|
---|
| 74 | set ERRORLEVEL=1
|
---|
| 75 | goto End
|
---|
| 76 |
|
---|
| 77 | :End
|
---|
| 78 |
|
---|
| 79 | popd
|
---|