[18425] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
[18489] | 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 |
|
---|
[21173] | 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
|
---|
[18489] | 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 |
|
---|
[22083] | 19 | if [ -z $GSDL3SRCHOME ] ; then
|
---|
| 20 | # Greenstone 2
|
---|
| 21 | echo "Warning: Did not find the directory \"$APACHE_HTTPD_HOME\""
|
---|
| 22 | echo " Has the main Greenstone been configured for this? "
|
---|
| 23 | echo " e.g. ./configure --enable-apache-httpd [... other options]"
|
---|
| 24 | echo ""
|
---|
| 25 | echo "=> Only the build-time code for the extension will be compiled"
|
---|
| 26 | else
|
---|
| 27 | # Greenstone 3
|
---|
| 28 | echo " Compiling build-time video extension for Greenstone3 use"
|
---|
| 29 | fi
|
---|
[21173] | 30 | export APACHE_HTTPD_HOME=
|
---|
[18489] | 31 | fi
|
---|
| 32 |
|
---|
| 33 |
|
---|
[18953] | 34 | source cascade-make/bin/script/test-setup.bash
|
---|
| 35 | source cascade-make/lib/cascade-lib.bash
|
---|
[18425] | 36 |
|
---|
[18953] | 37 | # Guaranteed that GSDLOS has now been set
|
---|
[18425] | 38 |
|
---|
[21173] | 39 | if [ ! -e $GEXTVIDEO_INSTALLED ] ; then
|
---|
| 40 | echo "Creating $GEXTVIDEO_INSTALLED"
|
---|
| 41 | mkdir $GEXTVIDEO_INSTALLED
|
---|
| 42 | fi
|
---|
[18425] | 43 |
|
---|
[21173] | 44 | dirlist="build-srcpack"
|
---|
| 45 |
|
---|
| 46 | if [ ! -z $APACHE_HTTPD_HOME ] ; then
|
---|
| 47 | dirlist="$dirlist runtime-srcpack"
|
---|
| 48 | fi
|
---|
| 49 |
|
---|
[18953] | 50 | if [ -e devel-srcpack ] ; then
|
---|
| 51 | dirlist="$dirlist devel-srcpack"
|
---|
| 52 | fi
|
---|
| 53 |
|
---|
| 54 | for d in $dirlist ; do
|
---|
[18425] | 55 | echo "Running $d/CASCADE-MAKE.sh $*"
|
---|
| 56 |
|
---|
| 57 | (cd $d ; ./CASCADE-MAKE.sh $*)
|
---|
| 58 |
|
---|
| 59 | if [ $? != 0 ] ; then
|
---|
| 60 | echo "Error encountered running $d/CASCADE-MAKE.sh"
|
---|
| 61 | exit 1
|
---|
| 62 | fi
|
---|
| 63 | done
|
---|
| 64 |
|
---|
| 65 |
|
---|
| 66 |
|
---|
[18953] | 67 | if [ $install = "1" ] ; then
|
---|
| 68 | cat NOTES.txt
|
---|
| 69 | fi
|
---|