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

Last change on this file since 23000 was 23000, checked in by sjm84, 11 years ago

Moving the source to the src folder

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