source: gs2-extensions/subversion/trunk/src/setup.bash@ 23094

Last change on this file since 23094 was 23094, checked in by sjm84, 14 years ago

Upgraded the SVN extension to make use of the exthome variable in cascade-lib.bash

File size: 1.0 KB
Line 
1extdesc="the Subversion"
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$GEXTSVN" = "x" ] ; then
15 export GEXTSVN=$fulldir
16 export GEXTSVN_INSTALLED=$GEXTSVN/$GSDLOS
17
18 export PATH=$GEXTSVN_INSTALLED/bin:$PATH
19
20 if [ "x$LD_LIBRARY_PATH" = "x" ] ; then
21 export LD_LIBRARY_PATH=$GEXTSVN_INSTALLED/lib
22 else
23 export LD_LIBRARY_PATH=$GEXTSVN_INSTALLED/lib:$LD_LIBRARY_PATH
24 fi
25 if [ "x$DYLD_LIBRARY_PATH" = "x" ] ; then
26 export DYLD_LIBRARY_PATH=$GEXTSVN_INSTALLED/lib
27 else
28 export DYLD_LIBRARY_PATH=$GEXTSVN_INSTALLED/lib:$DYLD_LIBRARY_PATH
29 fi
30
31 extdir=${GEXTSVN##*/}
32
33 if [ "x$GSDLEXTS" = "x" ] ; then
34 export GSDLEXTS=$extdir
35 else
36 export GSDLEXTS=$GSDLEXTS:$extdir
37 fi
38
39
40 echo "+Your environment is now setup for $extdesc extension"
41else
42 echo "+Your environment is already setup for $extdesc extension"
43fi
Note: See TracBrowser for help on using the repository browser.