root/extensions/gsdl-video/trunk/CASCADE-MAKE.bat @ 18996

Revision 18996, 1.5 KB (checked in by davidb, 11 years ago)

Start of DOS .bat equivalent files

  • Property svn:executable set to *
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 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
24REM call cascade-make/bin/script/test-setup.bat
25call cascade-make/lib/cascade-lib.bat
26
27:: Guaranteed that GSDLOS has now been set
28
29
30for /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
37set dirlist=build-srcpack runtime-srcpack
38if exist "devel-srcpack" (
39  set dirlist=%dirlist% devel-srcpack
40)
41
42for /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
54if  "%install%" == "1" (
55  type NOTES.txt
56)
57goto End
58
59:ErrorExitNeg1
60set ERRORLEVEL=-1
61goto End
62
63:ErrorExitPos1
64set ERRORLEVEL=1
65goto End
66
67:End
68
69popd
Note: See TracBrowser for help on using the browser.