Last change
on this file since 23007 was 23007, checked in by sjm84, 14 years ago |
Adding a src directory for the postgres-gis extension
|
File size:
1.1 KB
|
Line | |
---|
1 |
|
---|
2 | extdesc="the PostgreSQL and PostGIS"
|
---|
3 |
|
---|
4 | full_setup=`pwd`/${BASH_SOURCE}
|
---|
5 | fulldir=${full_setup%/*}
|
---|
6 | fulldir=${fulldir%/.}
|
---|
7 |
|
---|
8 | source cascade-make/lib/cascade-lib.bash
|
---|
9 |
|
---|
10 | if [ "x$GEXTPOSTGRES" = "x" ] ; then
|
---|
11 | export GEXTPOSTGRES=$fulldir
|
---|
12 | export GEXTPOSTGRES_INSTALLED=$GEXTPOSTGRES/$GSDLOS
|
---|
13 |
|
---|
14 | export PATH=$GEXTPOSTGRES_INSTALLED/bin:$PATH
|
---|
15 |
|
---|
16 | if [ "x$LD_LIBRARY_PATH" = "x" ] ; then
|
---|
17 | export LD_LIBRARY_PATH=$GEXTPOSTGRES_INSTALLED/lib
|
---|
18 | else
|
---|
19 | export LD_LIBRARY_PATH=$GEXTPOSTGRES_INSTALLED/lib:$LD_LIBRARY_PATH
|
---|
20 | fi
|
---|
21 | if [ "x$DYLD_LIBRARY_PATH" = "x" ] ; then
|
---|
22 | export DYLD_LIBRARY_PATH=$GEXTPOSTGRES_INSTALLED/lib
|
---|
23 | else
|
---|
24 | export DYLD_LIBRARY_PATH=$GEXTPOSTGRES_INSTALLED/lib:$DYLD_LIBRARY_PATH
|
---|
25 | fi
|
---|
26 |
|
---|
27 | if [ -e "devel-srcpack" ] ; then
|
---|
28 | export LD_LIBRARY_PATH=$GEXTPOSTGRES_INSTALLED/devel/lib:$LD_LIBRARY_PATH
|
---|
29 | export DYLD_LIBRARY_PATH=$GEXTPOSTGRES_INSTALLED/devel/lib:$DYLD_LIBRARY_PATH
|
---|
30 | fi
|
---|
31 |
|
---|
32 |
|
---|
33 | extdir=${GEXTPOSTGRES##*/}
|
---|
34 |
|
---|
35 | if [ "x$GSDLEXTS" = "x" ] ; then
|
---|
36 | export GSDLEXTS=$extdir
|
---|
37 | else
|
---|
38 | export GSDLEXTS=$GSDLEXTS:$extdir
|
---|
39 | fi
|
---|
40 |
|
---|
41 |
|
---|
42 | echo "+Your environment is now setup for $extdesc"
|
---|
43 | else
|
---|
44 | echo "+Your environment is already setup for $extdesc"
|
---|
45 | fi |
---|
Note:
See
TracBrowser
for help on using the repository browser.