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

Last change on this file since 22083 was 22083, checked in by sjm84, 14 years ago

Improved error reporting about detection (or not) of Apache httpd

File size: 1.7 KB
RevLine 
[18425]1#!/bin/bash
2
[18489]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
[21173]11if [ -z $APACHE_HTTPD_HOME ] ; then
12 export APACHE_HTTPD_HOME=$GSDLHOME/apache-httpd/$GSDLOS
13fi
14
15if [ ! -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]31fi
32
33
[18953]34source cascade-make/bin/script/test-setup.bash
35source cascade-make/lib/cascade-lib.bash
[18425]36
[18953]37# Guaranteed that GSDLOS has now been set
[18425]38
[21173]39if [ ! -e $GEXTVIDEO_INSTALLED ] ; then
40 echo "Creating $GEXTVIDEO_INSTALLED"
41 mkdir $GEXTVIDEO_INSTALLED
42fi
[18425]43
[21173]44dirlist="build-srcpack"
45
46if [ ! -z $APACHE_HTTPD_HOME ] ; then
47 dirlist="$dirlist runtime-srcpack"
48fi
49
[18953]50if [ -e devel-srcpack ] ; then
51 dirlist="$dirlist devel-srcpack"
52fi
53
54for 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
63done
64
65
66
[18953]67if [ $install = "1" ] ; then
68 cat NOTES.txt
69fi
Note: See TracBrowser for help on using the repository browser.