source: gs2-extensions/gnome-lib/trunk/src/setup.bash@ 23080

Last change on this file since 23080 was 23080, checked in by sjm84, 10 years ago

Modified the method used to pass a variable into Greenstone's setup.bash

File size: 1.2 KB
Line 
1
2extdesc="the GNOME support library"
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
15
16if [ "x$GEXTGNOME" = "x" ] ; then
17 export GEXTGNOME=$fulldir
18 export GEXTGNOME_INSTALLED=$GEXTGNOME/$GSDLOS
19
20 export PATH=$GEXTGNOME_INSTALLED/bin:$PATH
21
22 if [ "x$LD_LIBRARY_PATH" = "x" ] ; then
23 export LD_LIBRARY_PATH=$GEXTGNOME_INSTALLED/lib
24 else
25 export LD_LIBRARY_PATH=$GEXTGNOME_INSTALLED/lib:$LD_LIBRARY_PATH
26 fi
27 if [ "x$DYLD_LIBRARY_PATH" = "x" ] ; then
28 export DYLD_LIBRARY_PATH=$GEXTGNOME_INSTALLED/lib
29 else
30 export DYLD_LIBRARY_PATH=$GEXTGNOME_INSTALLED/lib:$DYLD_LIBRARY_PATH
31 fi
32
33 if [ -e "devel-srcpack" ] ; then
34 export LD_LIBRARY_PATH=$GEXTGNOME_INSTALLED/devel/lib:$LD_LIBRARY_PATH
35 export DYLD_LIBRARY_PATH=$GEXTGNOME_INSTALLED/devel/lib:$DYLD_LIBRARY_PATH
36 fi
37
38
39 extdir=${GEXTGNOME##*/}
40
41 if [ "x$GSDLEXTS" = "x" ] ; then
42 export GSDLEXTS=$extdir
43 else
44 export GSDLEXTS=$GSDLEXTS:$extdir
45 fi
46
47
48 echo "+Your environment is now setup for $extdesc"
49else
50 echo "+Your environment is already setup for $extdesc"
51fi
Note: See TracBrowser for help on using the repository browser.