root/gs2-extensions/rsync/trunk/src/setup.bash @ 23871

Revision 23871, 1.5 KB (checked in by davidb, 9 years ago)

Additional scripts to support cascade-make

Line 
1
2extdesc="the Rsync Extension"
3
4full_setup=`pwd`/${BASH_SOURCE}
5fulldir=${full_setup%/*}
6fulldir=${fulldir%/.}
7
8if [ "x$GSDLHOME" = "x" ] ; then
9  if [ -e ../../setup.bash ] ; then
10    export gsopt_noexts=1 && pushd ../.. && source setup.bash && popd
11    export gsopt_noexts=
12  fi
13fi
14
15if [ "x$GEXTRSYNC" = "x" ] ; then
16  export GEXTRSYNC=$fulldir
17  export GEXTRSYNC_INSTALLED=$GEXTRSYNC/$GSDLOS
18
19  export PATH=$GEXTRSYNC_INSTALLED/bin:$PATH
20
21  if [ "x$LD_LIBRARY_PATH" = "x" ] ; then
22    export LD_LIBRARY_PATH=$GEXTRSYNC_INSTALLED/lib
23  else
24    export LD_LIBRARY_PATH=$GEXTRSYNC_INSTALLED/lib:$LD_LIBRARY_PATH
25  fi
26
27  export APACHE_HTTPD_HOME="$GEXTRSYNC_INSTALLED";
28  export COMPILE_UP_APACHE_HTTPD=1
29
30  if [ -n "$GSDLHOME" ] ; then
31      # see if there is already an apache httpd we can use
32      # override default values if there is
33      if [ -e "$GSDLHOME/apache-httpd/$GSDLOS" ] ; then
34      export APACHE_HTTPD_HOME="$GSDLHOME/apache-httpd/$GSDLOS";
35      export COMPILE_UP_APACHE_HTTPD=0
36      fi
37  fi
38 
39  export COMPILE_UP_MYSQL=1
40  if [ -n "$GEXTMYSQL" ] ; then
41    if [ -e "$GEXTMYSQL/$GSDLOS" ] ; then
42      export COMPILE_UP_MYSQL=0     
43      source $GEXTMYSQL/setup.bash
44    fi
45  fi
46
47  extdir=${GEXTRSYNC##*/}
48
49  if [ "x$GSDLEXTS" = "x" ] ; then
50    export GSDLEXTS=$extdir
51  else
52    export GSDLEXTS=$GSDLEXTS:$extdir
53  fi
54
55  echo "+Your environment is now setup for $extdesc to Greenstone"
56else
57  echo "+Your environment is already setup for $extdesc to Greenstone"
58fi
59
60
Note: See TracBrowser for help on using the browser.