source: gs2-extensions/gsdl-video/trunk/CASCADE-MAKE.sh@ 21525

Last change on this file since 21525 was 21173, checked in by davidb, 14 years ago

No longer have top level 'installed' folder.

File size: 1.5 KB
Line 
1#!/bin/bash
2
3if [ "x$GSDLHOME" = "x" ] ; then
4 # This extension needs to have the main GSDL setup.bash sourced
5
6 echo "Greenstone environment variable GSDLHOME not set."
7 echo "Have you sourced the main installation's setup file, e.g. setup.bash?"
8 exit -1
9fi
10
11if [ -z $APACHE_HTTPD_HOME ] ; then
12 export APACHE_HTTPD_HOME=$GSDLHOME/apache-httpd/$GSDLOS
13fi
14
15if [ ! -d "$APACHE_HTTPD_HOME" ] ; then
16 # ... and it also needs to have been configured with --enable-apache-httpd
17 # This is because the entension needs to add mod_flvx to the web server
18
19 echo "Warning: Could not find the directory \"$APACHE_HTTPD_HOME\""
20 echo " Has the main Greenstone been configure for this? "
21 echo " e.g. ./configure --enable-apache-httpd [... other options]"
22 echo ""
23 echo "=> Only the build-time code for the extension will be compiled"
24 export APACHE_HTTPD_HOME=
25fi
26
27
28source cascade-make/bin/script/test-setup.bash
29source cascade-make/lib/cascade-lib.bash
30
31# Guaranteed that GSDLOS has now been set
32
33if [ ! -e $GEXTVIDEO_INSTALLED ] ; then
34 echo "Creating $GEXTVIDEO_INSTALLED"
35 mkdir $GEXTVIDEO_INSTALLED
36fi
37
38dirlist="build-srcpack"
39
40if [ ! -z $APACHE_HTTPD_HOME ] ; then
41 dirlist="$dirlist runtime-srcpack"
42fi
43
44if [ -e devel-srcpack ] ; then
45 dirlist="$dirlist devel-srcpack"
46fi
47
48for d in $dirlist ; do
49 echo "Running $d/CASCADE-MAKE.sh $*"
50
51 (cd $d ; ./CASCADE-MAKE.sh $*)
52
53 if [ $? != 0 ] ; then
54 echo "Error encountered running $d/CASCADE-MAKE.sh"
55 exit 1
56 fi
57done
58
59
60
61if [ $install = "1" ] ; then
62 cat NOTES.txt
63fi
Note: See TracBrowser for help on using the repository browser.