#!/bin/bash if [ "x$GSDLHOME" = "x" ] ; then # This extension needs to have the main GSDL setup.bash sourced echo "Greenstone environment variable GSDLHOME not set." echo "Have you sourced the main installation's setup file, e.g. setup.bash?" exit -1 fi if [ ! -d "$GSDLHOME/apache-httpd" ] ; then # ... and it also needs to have been configured with --enable-apache-httpd # This is because the entension needs to add mod_flvx to the web server echo "Could not find the directory \"$GSDLHOME/apache-httpd\"" echo "Has the main Greenstone been configure for this? " echo "e.g. ./configure --enable-apache-httpd [... other options]" exit -1 fi source cascade-make/bin/script/test-setup.bash source cascade-make/lib/cascade-lib.bash # Guaranteed that GSDLOS has now been set for d in $GSDLOS ; do if [ ! -e $GEXTVIDEO_INSTALLED/$d ] ; then echo "Creating $GEXTVIDEO_INSTALLED/$d" mkdir $GEXTVIDEO_INSTALLED/$d fi done dirlist="build-srcpack runtime-srcpack" if [ -e devel-srcpack ] ; then dirlist="$dirlist devel-srcpack" fi for d in $dirlist ; do echo "Running $d/CASCADE-MAKE.sh $*" (cd $d ; ./CASCADE-MAKE.sh $*) if [ $? != 0 ] ; then echo "Error encountered running $d/CASCADE-MAKE.sh" exit 1 fi done if [ $install = "1" ] ; then cat NOTES.txt fi