Mercurial > dive4elements > river
comparison flys-backend/contrib/import_river.sh @ 5212:14186e924534
Fix opt path if OPTIONAL_LIBS is not set
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 11 Mar 2013 10:12:55 +0100 |
parents | 1b6d4edeeb4c |
children | 480d2f1f61cc |
comparison
equal
deleted
inserted
replaced
5211:9e11599266c8 | 5212:14186e924534 |
---|---|
37 | 37 |
38 | 38 |
39 MIN_MEMORY="8024m" | 39 MIN_MEMORY="8024m" |
40 | 40 |
41 if [ -z "$OPTIONAL_LIBS" ]; then | 41 if [ -z "$OPTIONAL_LIBS" ]; then |
42 OPTIONAL_LIBS="${DIR}"/../opt | 42 OPTIONAL_LIBS="$(dirname $0)/opt" |
43 fi | 43 fi |
44 | 44 |
45 if [ -d "$OPTIONAL_LIBS" ]; then | 45 if [ -d "$OPTIONAL_LIBS" ]; then |
46 export PATH="$OPTIONAL_LIBS/bin:$PATH" | 46 export PATH="$OPTIONAL_LIBS/bin:$PATH" |
47 export LD_LIBRARY_PATH="$OPTIONAL_LIBS/lib:$LD_LIBRARY_PATH" | 47 export LD_LIBRARY_PATH="$OPTIONAL_LIBS/lib:$LD_LIBRARY_PATH" |