2013-11-22 12:01:32 -08:00
|
|
|
#!/bin/bash
|
2015-04-26 20:32:20 +02:00
|
|
|
# TODO - use rpath to avoid needing this to run tests locally
|
2014-04-28 18:02:14 -07:00
|
|
|
export CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
2015-04-26 20:32:20 +02:00
|
|
|
if [ $(uname -s) = 'Darwin' ]; then
|
2014-05-12 09:20:24 -07:00
|
|
|
export DYLD_LIBRARY_PATH="${CURRENT_DIR}/src/":${DYLD_LIBRARY_PATH}
|
2013-11-22 12:01:32 -08:00
|
|
|
else
|
2014-05-12 09:20:24 -07:00
|
|
|
export LD_LIBRARY_PATH="${CURRENT_DIR}/src/":${LD_LIBRARY_PATH}
|
2015-05-15 11:28:55 -07:00
|
|
|
fi
|
|
|
|
|
2015-05-15 11:49:01 -07:00
|
|
|
export PATH=$(pwd)/utils/nik2img/:${PATH}
|
2015-07-27 18:30:26 -07:00
|
|
|
export PATH=$(pwd)/utils/mapnik-config/:${PATH}
|
2015-05-15 11:49:01 -07:00
|
|
|
|
2015-05-15 11:28:55 -07:00
|
|
|
# mapnik-settings.env is an optional file to store
|
|
|
|
# environment variables that should be used before
|
|
|
|
# running tests like PROJ_LIB, GDAL_DATA, and ICU_DATA
|
|
|
|
# These do not normally need to be set except when
|
|
|
|
# building against binary versions of dependencies like
|
|
|
|
# done via bootstrap.sh
|
|
|
|
if [[ -f mapnik-settings.env ]]; then
|
|
|
|
echo "Inheriting from mapnik-settings.env"
|
|
|
|
source mapnik-settings.env
|
|
|
|
fi
|