root/extensions/gsdl-video/trunk/CASCADE-MAKE.sh @ 19785

Revision 18953, 1.3 KB (checked in by davidb, 11 years ago)

Further iteration of scripts to compile up necessary support packages for video extension

Line 
1#!/bin/bash
2
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
11if [ ! -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
19fi
20
21
22source cascade-make/bin/script/test-setup.bash
23source cascade-make/lib/cascade-lib.bash
24
25# Guaranteed that GSDLOS has now been set
26
27for d in $GSDLOS ; do
28  if [ ! -e $GEXTVIDEO_INSTALLED/$d ] ; then
29    echo "Creating $GEXTVIDEO_INSTALLED/$d"
30    mkdir $GEXTVIDEO_INSTALLED/$d
31  fi
32done
33
34dirlist="build-srcpack runtime-srcpack"
35if [ -e devel-srcpack ] ; then
36  dirlist="$dirlist devel-srcpack"
37fi
38
39for d in $dirlist ; 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
48done
49
50
51
52if [ $install = "1" ] ; then
53  cat NOTES.txt
54fi
Note: See TracBrowser for help on using the browser.