1 | #!/bin/bash
|
---|
2 |
|
---|
3 | if [ "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
|
---|
9 | fi
|
---|
10 |
|
---|
11 | if [ -z $APACHE_HTTPD_HOME ] ; then
|
---|
12 | export APACHE_HTTPD_HOME=$GSDLHOME/apache-httpd/$GSDLOS
|
---|
13 | fi
|
---|
14 |
|
---|
15 | if [ ! -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=
|
---|
25 | fi
|
---|
26 |
|
---|
27 |
|
---|
28 | source cascade-make/bin/script/test-setup.bash
|
---|
29 | source cascade-make/lib/cascade-lib.bash
|
---|
30 |
|
---|
31 | # Guaranteed that GSDLOS has now been set
|
---|
32 |
|
---|
33 | if [ ! -e $GEXTVIDEO_INSTALLED ] ; then
|
---|
34 | echo "Creating $GEXTVIDEO_INSTALLED"
|
---|
35 | mkdir $GEXTVIDEO_INSTALLED
|
---|
36 | fi
|
---|
37 |
|
---|
38 | dirlist="build-srcpack"
|
---|
39 |
|
---|
40 | if [ ! -z $APACHE_HTTPD_HOME ] ; then
|
---|
41 | dirlist="$dirlist runtime-srcpack"
|
---|
42 | fi
|
---|
43 |
|
---|
44 | if [ -e devel-srcpack ] ; then
|
---|
45 | dirlist="$dirlist devel-srcpack"
|
---|
46 | fi
|
---|
47 |
|
---|
48 | for 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
|
---|
57 | done
|
---|
58 |
|
---|
59 |
|
---|
60 |
|
---|
61 | if [ $install = "1" ] ; then
|
---|
62 | cat NOTES.txt
|
---|
63 | fi
|
---|