1 | extdesc="the Subversion extension"
|
---|
2 |
|
---|
3 | full_setup=`pwd`/${BASH_SOURCE}
|
---|
4 | fulldir=${full_setup%/*}
|
---|
5 | fulldir=${fulldir%/.}
|
---|
6 |
|
---|
7 | if [ "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
|
---|
15 | fi
|
---|
16 |
|
---|
17 | # Back up plan
|
---|
18 | if test -z $GSDLOS ; then
|
---|
19 | GSDLOS=`uname -s | tr '[A-Z]' '[a-z]'`
|
---|
20 | # check for running bash under Cygwin
|
---|
21 | if test "`echo $GSDLOS | sed 's/cygwin//'`" != "$GSDLOS" ;
|
---|
22 | then
|
---|
23 | GSDLOS=windows
|
---|
24 | fi
|
---|
25 | # check for running bash under MinGW/MSys
|
---|
26 | if test "`echo $GSDLOS | sed 's/mingw//'`" != "$GSDLOS" ;
|
---|
27 | then
|
---|
28 | GSDLOS=windows
|
---|
29 | fi
|
---|
30 | echo "GSDLOS was not set. Setting it to '$GSDLOS'"
|
---|
31 | export GSDLOS
|
---|
32 | fi
|
---|
33 |
|
---|
34 |
|
---|
35 | if [ "x$GEXTSVN" = "x" ] ; then
|
---|
36 | export GEXTSVN=$fulldir
|
---|
37 | export GEXTSVN_INSTALLED=$GEXTSVN/$GSDLOS
|
---|
38 |
|
---|
39 | export PATH=$GEXTSVN_INSTALLED/bin:$PATH
|
---|
40 |
|
---|
41 | if [ "x$LD_LIBRARY_PATH" = "x" ] ; then
|
---|
42 | export LD_LIBRARY_PATH=$GEXTSVN_INSTALLED/lib
|
---|
43 | else
|
---|
44 | export LD_LIBRARY_PATH=$GEXTSVN_INSTALLED/lib:$LD_LIBRARY_PATH
|
---|
45 | fi
|
---|
46 | if [ "x$DYLD_LIBRARY_PATH" = "x" ] ; then
|
---|
47 | export DYLD_LIBRARY_PATH=$GEXTSVN_INSTALLED/lib
|
---|
48 | else
|
---|
49 | export DYLD_LIBRARY_PATH=$GEXTSVN_INSTALLED/lib:$DYLD_LIBRARY_PATH
|
---|
50 | fi
|
---|
51 |
|
---|
52 | extdir=${GEXTSVN##*/}
|
---|
53 |
|
---|
54 | if [ "x$GSDLEXTS" = "x" ] ; then
|
---|
55 | export GSDLEXTS=$extdir
|
---|
56 | else
|
---|
57 | export GSDLEXTS=$GSDLEXTS:$extdir
|
---|
58 | fi
|
---|
59 |
|
---|
60 |
|
---|
61 | echo "+Your environment is now setup for $extdesc"
|
---|
62 | else
|
---|
63 | echo "+Your environment is already setup for $extdesc"
|
---|
64 | fi |
---|