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 |
|
---|
13 | if not exist "%GSDLHOME%\apache-httpd" (
|
---|
14 | REM ... and it also needs to have been configured with --enable-apache-httpd
|
---|
15 | REM This is because the entension needs to add mod_flvx to the web server
|
---|
16 |
|
---|
17 | echo Could not find the directory "%GSDLHOME%\apache-httpd"
|
---|
18 | echo Has the main Greenstone been configure for this?
|
---|
19 | echo e.g. nmake /f win32.mak APACHE_HTTPD=1 [... other options]
|
---|
20 | exit ErrorExitNeg1
|
---|
21 | )
|
---|
22 |
|
---|
23 |
|
---|
24 | REM call cascade-make/bin/script/test-setup.bat
|
---|
25 | call cascade-make/lib/cascade-lib.bat
|
---|
26 |
|
---|
27 | :: Guaranteed that GSDLOS has now been set
|
---|
28 |
|
---|
29 |
|
---|
30 | for /D %%d IN ("%GSDLOS%") do (
|
---|
31 | if not exist "%GEXTVIDEO_INSTALLED%\%%d" (
|
---|
32 | echo Creating %GEXTVIDEO_INSTALLED%\%%d
|
---|
33 | mkdir "%GEXTVIDEO_INSTALLED%\%%d"
|
---|
34 | )
|
---|
35 | )
|
---|
36 |
|
---|
37 | set dirlist=build-srcpack runtime-srcpack
|
---|
38 | if exist "devel-srcpack" (
|
---|
39 | set dirlist=%dirlist% devel-srcpack
|
---|
40 | )
|
---|
41 |
|
---|
42 | for /D %%d IN (%dirlist%) do (
|
---|
43 | echo Running %%d\CASCADE-MAKE.bat %*
|
---|
44 |
|
---|
45 | (cd %%d && call CASCADE-MAKE.bat %* && cd ..)
|
---|
46 |
|
---|
47 | if not ERRORLEVEL 0 (
|
---|
48 | echo Error encountered running %%d\CASCADE-MAKE.bat
|
---|
49 | goto ErrorExitPos1
|
---|
50 | )
|
---|
51 | )
|
---|
52 |
|
---|
53 |
|
---|
54 | if "%install%" == "1" (
|
---|
55 | type NOTES.txt
|
---|
56 | )
|
---|
57 | goto End
|
---|
58 |
|
---|
59 | :ErrorExitNeg1
|
---|
60 | set ERRORLEVEL=-1
|
---|
61 | goto End
|
---|
62 |
|
---|
63 | :ErrorExitPos1
|
---|
64 | set ERRORLEVEL=1
|
---|
65 | goto End
|
---|
66 |
|
---|
67 | :End
|
---|
68 |
|
---|
69 | popd
|
---|