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

Last change on this file since 23076 was 23076, checked in by sjm84, 13 years ago

Several changes to the GNOME support library to fix issues when a pre-compiled version is used to assist Greenstone installation

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