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

Revision 18489, 1.5 KB (checked in by davidb, 11 years ago)

Addition of mod_flvx that uses uses 'apxs' to add itself to the apache-httpd installed web server in the main GSDLHOME area

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 bin/script/test-setup.bash
23source lib/cascade-lib.bash
24
25
26# Ensure that the necessary directories exist within the 'installed' area
27dirlist="cmdline server"
28if [ -e packages/devel ] ; then
29  dirlist="$dirlist devel"
30fi
31
32for d in $dirlist ; do
33  if [ ! -e $GEXTVIDEO_INSTALLED/$d ] ; then
34    echo "Creating $GEXTVIDEO_INSTALLED/$d"
35    mkdir $GEXTVIDEO_INSTALLED/$d
36  fi
37done
38
39for 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
48done
49
50
51if [ ! -e $GEXTVIDEO_INSTALLED/server/htdocs/gsdl ] ; then
52  ( cd $GEXTVIDEO_INSTALLED/server/htdocs/ ; \
53    if [ ! -e gsdl ] ; then ln -s $GSDLHOME gsdl ; fi )
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
62fi
Note: See TracBrowser for help on using the browser.