[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 |
|
---|
| 11 | if [ ! -d "$GSDLHOME/apache-httpd" ] ; then
|
---|
| 12 | # ... and it also needs to have been configured with --enable-apache-httpd
|
---|
| 13 | # This is because the entension needs to add mod_flvx to the web server
|
---|
| 14 |
|
---|
| 15 | echo "Could not find the directory \"$GSDLHOME/apache-httpd\""
|
---|
| 16 | echo "Has the main Greenstone been configure for this? "
|
---|
| 17 | echo "e.g. ./configure --enable-apache-httpd [... other options]"
|
---|
| 18 | exit -1
|
---|
| 19 | fi
|
---|
| 20 |
|
---|
| 21 |
|
---|
[18425] | 22 | source bin/script/test-setup.bash
|
---|
| 23 | source lib/cascade-lib.bash
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 | # Ensure that the necessary directories exist within the 'installed' area
|
---|
| 27 | dirlist="cmdline server"
|
---|
| 28 | if [ -e packages/devel ] ; then
|
---|
| 29 | dirlist="$dirlist devel"
|
---|
| 30 | fi
|
---|
| 31 |
|
---|
| 32 | for d in $dirlist ; do
|
---|
| 33 | if [ ! -e $GEXTVIDEO_INSTALLED/$d ] ; then
|
---|
| 34 | echo "Creating $GEXTVIDEO_INSTALLED/$d"
|
---|
| 35 | mkdir $GEXTVIDEO_INSTALLED/$d
|
---|
| 36 | fi
|
---|
| 37 | done
|
---|
| 38 |
|
---|
| 39 | for d in packages ; do
|
---|
| 40 | echo "Running $d/CASCADE-MAKE.sh $*"
|
---|
| 41 |
|
---|
| 42 | (cd $d ; ./CASCADE-MAKE.sh $*)
|
---|
| 43 |
|
---|
| 44 | if [ $? != 0 ] ; then
|
---|
| 45 | echo "Error encountered running $d/CASCADE-MAKE.sh"
|
---|
| 46 | exit 1
|
---|
| 47 | fi
|
---|
| 48 | done
|
---|
| 49 |
|
---|
| 50 |
|
---|
| 51 | if [ ! -e $GEXTVIDEO_INSTALLED/server/htdocs/gsdl ] ; then
|
---|
| 52 | ( cd $GEXTVIDEO_INSTALLED/server/htdocs/ ; \
|
---|
[18489] | 53 | if [ ! -e gsdl ] ; then ln -s $GSDLHOME gsdl ; fi )
|
---|
[18425] | 54 |
|
---|
| 55 | if [ $? != 0 ] ; then
|
---|
| 56 | echo "Error encountered configuring lighttpd server 'htdocs' to have symbolic link to gsdl home"
|
---|
| 57 | echo "Is GSDLHOME set?"
|
---|
| 58 | exit 1
|
---|
| 59 | fi
|
---|
| 60 |
|
---|
| 61 |
|
---|
| 62 | fi |
---|