diff flys-backend/contrib/run_geo.sh @ 5066:8208df10df79 dami

Update run example scripts to work with the new packaging
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 20 Feb 2013 18:29:02 +0100
parents 1f33012cc02a
children 90b9b80ffbbf
line wrap: on
line diff
--- a/flys-backend/contrib/run_geo.sh	Wed Feb 20 18:26:57 2013 +0100
+++ b/flys-backend/contrib/run_geo.sh	Wed Feb 20 18:29:02 2013 +0100
@@ -27,9 +27,19 @@
 SKIP_UESG=0
 SKIP_DGM=0
 
+# There should be no need to change anything below this line
+
 DIR=`dirname $0`
 DIR=`readlink -f "$DIR"`
 
+OPTIONAL_LIBS="${DIR}"/../opt
+if [ -d "$OPTIONAL_LIBS" ]; then
+    export PATH="$OPTIONAL_LIBS/bin:$PATH"
+    export LD_LIBRARY_PATH="$OPTIONAL_LIBS/lib:$LD_LIBRARY_PATH"
+    export LD_LIBRARY_PATH="$OPTIONAL_LIBS/lib64:$LD_LIBRARY_PATH"
+    export PYTHONPATH="$OPTIONAL_LIBS/lib/python2.6/site-packages:$PYTHONPATH"
+fi
+
 exec python $DIR/shpimporter/shpimporter.py \
     --directory $RIVER_PATH \
     --river_name $RIVER_NAME \

http://dive4elements.wald.intevation.org