Last change
on this file since 18953 was 18953, checked in by davidb, 14 years ago |
Further iteration of scripts to compile up necessary support packages for video extension
|
File size:
1.3 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
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 |
|
---|
22 | source cascade-make/bin/script/test-setup.bash
|
---|
23 | source cascade-make/lib/cascade-lib.bash
|
---|
24 |
|
---|
25 | # Guaranteed that GSDLOS has now been set
|
---|
26 |
|
---|
27 | for d in $GSDLOS ; do
|
---|
28 | if [ ! -e $GEXTVIDEO_INSTALLED/$d ] ; then
|
---|
29 | echo "Creating $GEXTVIDEO_INSTALLED/$d"
|
---|
30 | mkdir $GEXTVIDEO_INSTALLED/$d
|
---|
31 | fi
|
---|
32 | done
|
---|
33 |
|
---|
34 | dirlist="build-srcpack runtime-srcpack"
|
---|
35 | if [ -e devel-srcpack ] ; then
|
---|
36 | dirlist="$dirlist devel-srcpack"
|
---|
37 | fi
|
---|
38 |
|
---|
39 | for 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
|
---|
48 | done
|
---|
49 |
|
---|
50 |
|
---|
51 |
|
---|
52 | if [ $install = "1" ] ; then
|
---|
53 | cat NOTES.txt
|
---|
54 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.