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

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

A few minor fixes to the gnome lib setup.bash

File size: 1.2 KB
Line 
1extdesc="the GNOME support library extension"
2
3full_setup=`pwd`/${BASH_SOURCE}
4fulldir=${full_setup%/*}
5fulldir=${fulldir%/.}
6
7if [ "x$GSDLHOME" = "x" ] ; then
8 if [ -e ../../setup.bash ] ; then
9 export gsopt_noexts=1 && pushd ../.. && source setup.bash && popd
10 export gsopt_noexts=
11 fi
12fi
13
14if [ "x$GEXTGNOME" = "x" ] ; then
15 export GEXTGNOME=$fulldir
16 export GEXTGNOME_INSTALLED=$GEXTGNOME/$GSDLOS
17
18 export PATH=$GEXTGNOME_INSTALLED/bin:$PATH
19
20 if [ "x$LD_LIBRARY_PATH" = "x" ] ; then
21 export LD_LIBRARY_PATH=$GEXTGNOME_INSTALLED/lib
22 else
23 export LD_LIBRARY_PATH=$GEXTGNOME_INSTALLED/lib:$LD_LIBRARY_PATH
24 fi
25 if [ "x$DYLD_LIBRARY_PATH" = "x" ] ; then
26 export DYLD_LIBRARY_PATH=$GEXTGNOME_INSTALLED/lib
27 else
28 export DYLD_LIBRARY_PATH=$GEXTGNOME_INSTALLED/lib:$DYLD_LIBRARY_PATH
29 fi
30
31 if [ -e "devel-srcpack" ] ; then
32 export LD_LIBRARY_PATH=$GEXTGNOME_INSTALLED/devel/lib:$LD_LIBRARY_PATH
33 export DYLD_LIBRARY_PATH=$GEXTGNOME_INSTALLED/devel/lib:$DYLD_LIBRARY_PATH
34 fi
35
36
37 extdir=${GEXTGNOME##*/}
38
39 if [ "x$GSDLEXTS" = "x" ] ; then
40 export GSDLEXTS=$extdir
41 else
42 export GSDLEXTS=$GSDLEXTS:$extdir
43 fi
44
45
46 echo "+Your environment is now setup for $extdesc"
47else
48 echo "+Your environment is already setup for $extdesc"
49fi
Note: See TracBrowser for help on using the repository browser.