root/gs2-extensions/gnome-lib/trunk/src/setup.bash_old @ 30965

Revision 28304, 1.4 KB (checked in by ak19, 6 years ago)

More cases of needing to source a script using source dot-slash-script

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