root/gs2-extensions/gnome-lib/trunk/setup.bash @ 22805

Revision 22805, 1.1 KB (checked in by ak19, 9 years ago)

Add the contents of the gnome-lib extension

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