source: gs2-extensions/gsdl-amp/trunk/setup.bash@ 22236

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

Added the cascade make external

File size: 1.0 KB
Line 
1
2
3extdesc="the Apache-MySql-Php (AMP) Extension"
4
5
6if [ "x$GEXTAMP" = "x" ] ; then
7 export GEXTAMP=`pwd`
8 export GEXTAMP_INSTALLED=$GEXTAMP/installed
9
10 export PATH=$GEXTAMP_INSTALLED/bin:$PATH
11
12 if [ "x$LD_LIBRARY_PATH" = "x" ] ; then
13 export LD_LIBRARY_PATH=$GEXTAMP_INSTALLED/lib
14 else
15 export LD_LIBRARY_PATH=$GEXTAMP_INSTALLED/lib:$LD_LIBRARY_PATH
16 fi
17
18
19 export APACHE_HTTPD_HOME="$GEXTAMP_INSTALLED";
20 export COMPILE_UP_APACHE_HTTPD=1
21
22 if [ -n "$GSDLHOME" ] ; then
23 # see if there is already an apache httpd we can use
24 # override default values if there is
25 if [ -e "$GSDLHOME/apache-httpd/$GSDLOS" ] ; then
26 export APACHE_HTTPD_HOME="$GSDLHOME/apache-httpd/$GSDLOS";
27 export COMPILE_UP_APACHE_HTTPD=0
28 fi
29 if
30
31
32 extdir=${GEXTAMP##*/}
33
34 if [ "x$GSDLEXTS" = "x" ] ; then
35 export GSDLEXTS=$extdir
36 else
37 export GSDLEXTS=$GSDLEXTS:$extdir
38 fi
39
40
41 echo "+Your environment is now setup for $extdesc to Greenstone"
42else
43 echo "+Your environment is already setup for $extdesc to Greenstone"
44fi
45
46
Note: See TracBrowser for help on using the repository browser.