source: gs2-extensions/video-and-audio/trunk/src/CASCADE-MAKE.bat@ 23036

Last change on this file since 23036 was 23036, checked in by sjm84, 10 years ago

The video extension now uses the new folder layout

  • Property svn:executable set to *
File size: 1.7 KB
Line 
1@echo off
2pushd "%CD%"
3CD /D "%~dp0"
4
5if "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
13if "x%$APACHE_HTTPD_HOME%" == "x" (
14 set APACHE_HTTPD_HOME=%GSDLHOME%\apache-httpd\windows
15)
16
17if 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
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=
27)
28
29
30REM call cascade-make/bin/script/test-setup.bat
31call cascade-make/lib/cascade-lib.bat
32
33:: Guaranteed that GSDLOS has now been set
34
35
36echo "Test for directory in Windows might not be correct syntax!!"
37if not exist "%GEXTVIDEO_INSTALLED%" (
38 echo Creating %GEXTVIDEO_INSTALLED%
39 mkdir "%GEXTVIDEO_INSTALLED%"
40)
41
42set dirlist=build-srcpack
43
44if "x%APACHE_HTTPD_HOME%" != "x" (
45 set dirlist=%dirlist% runtime-srcpack
46)
47
48if exist "devel-srcpack" (
49 set dirlist=%dirlist% devel-srcpack
50)
51
52for /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
64if "%install%" == "1" (
65 type NOTES.txt
66)
67goto End
68
69:ErrorExitNeg1
70set ERRORLEVEL=-1
71goto End
72
73:ErrorExitPos1
74set ERRORLEVEL=1
75goto End
76
77:End
78
79popd
Note: See TracBrowser for help on using the repository browser.