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

Revision 18425, 0.9 KB (checked in by davidb, 11 years ago)

Video extension to Greenstone

Line 
1#!/bin/bash
2
3source bin/script/test-setup.bash
4source lib/cascade-lib.bash
5
6
7# Ensure that the necessary directories exist within the 'installed' area
8dirlist="cmdline server"
9if [ -e packages/devel ] ; then
10  dirlist="$dirlist devel"
11fi
12
13for d in $dirlist ; do
14  if [ ! -e $GEXTVIDEO_INSTALLED/$d ] ; then
15    echo "Creating $GEXTVIDEO_INSTALLED/$d"
16    mkdir $GEXTVIDEO_INSTALLED/$d
17  fi
18done
19
20for d in packages ; do
21  echo "Running $d/CASCADE-MAKE.sh $*"
22
23  (cd $d ; ./CASCADE-MAKE.sh $*)
24
25  if [ $? != 0 ] ; then
26    echo "Error encountered running $d/CASCADE-MAKE.sh"
27    exit 1
28  fi
29done
30
31
32if [ ! -e $GEXTVIDEO_INSTALLED/server/htdocs/gsdl ] ; then
33  ( cd $GEXTVIDEO_INSTALLED/server/htdocs/ ; \
34    ln -s $GSDLHOME gsdl )
35
36  if [ $? != 0 ] ; then
37    echo "Error encountered configuring lighttpd server 'htdocs' to have symbolic link to gsdl home"
38    echo "Is GSDLHOME set?"
39    exit 1
40  fi
41
42
43fi
Note: See TracBrowser for help on using the browser.