add localize.sh script that tests can source to run locally
This commit is contained in:
parent
66347f78e6
commit
38a059298b
1 changed files with 13 additions and 0 deletions
13
localize.sh
Executable file
13
localize.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
UNAME=$(uname -s)
|
||||
CURRENT_DIR=$(pwd)
|
||||
|
||||
if [ ${UNAME} = 'Darwin' ]; then
|
||||
export DYLD_LIBRARY_PATH="${CURRENT_DIR}/src/":${DYLD_LIBRARY_PATH}
|
||||
else
|
||||
export LD_LIBRARY_PATH="${CURRENT_DIR}/src/":${DYLD_LIBRARY_PATH}
|
||||
fi
|
||||
export PYTHONPATH="${CURRENT_DIR}/bindings/python/":${PYTHONPATH}
|
||||
export MAPNIK_FONT_DIRECTORY="${CURRENT_DIR}/fonts/dejavu-fonts-ttf-2.33/ttf/"
|
||||
export MAPNIK_INPUT_PLUGINS_DIRECTORY="${CURRENT_DIR}/plugins/input/"
|
||||
export PATH="${CURRENT_DIR}/bin/":${PATH}
|
Loading…
Reference in a new issue