mapnik/localize.sh

27 lines
974 B
Bash
Raw Normal View History

#!/bin/bash
2016-05-18 17:38:07 +00:00
2015-04-26 18:32:20 +00:00
# TODO - use rpath to avoid needing this to run tests locally
2016-05-18 17:38:07 +00:00
export CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2016-05-18 17:38:07 +00:00
if [[ $(uname -s) == 'Darwin' ]]; then
export DYLD_LIBRARY_PATH="${CURRENT_DIR}/src/":${DYLD_LIBRARY_PATH:-""}
elif [[ $(uname -s) == 'Linux' ]]; then
export LD_LIBRARY_PATH="${CURRENT_DIR}/src/":${LD_LIBRARY_PATH:-""}
fi
export PATH=$(pwd)/utils/mapnik-render/:${PATH}
export PATH=$(pwd)/utils/mapnik-index/:${PATH}
2015-07-28 01:30:26 +00:00
export PATH=$(pwd)/utils/mapnik-config/:${PATH}
2016-01-26 00:57:32 +00:00
export PATH=$(pwd)/utils/shapeindex/:${PATH}
2015-05-15 18:49:01 +00: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