source: gs2-extensions/mysql/trunk/src/setup.bash@ 23097

Last change on this file since 23097 was 23097, checked in by sjm84, 13 years ago

Upgrading the mysql extension

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