mapnik/osx/installer/scripts/setup.sh
2011-08-23 15:22:32 +00:00

15 lines
No EOL
641 B
Bash
Executable file

#!/bin/bash
# TODO
# - find safer way to do this: http://trac.mapnik.org/ticket/776
# - check for ~/.profile so that adding a new bash_profile does not override
# backup bash_profile
cp ~/.bash_profile ~/.bash_profile.mapnik.backup
# add installer Programs to PATH
# by appending new entries to bash_profile
echo '' >> ~/.bash_profile
echo '# Settings for Mapnik.framework Installer to enable Mapnik programs and python bindings' >> ~/.bash_profile
echo 'export PATH=/Library/Frameworks/Mapnik.framework/Programs:$PATH' >> ~/.bash_profile
echo 'export PYTHONPATH=/Library/Frameworks/Mapnik.framework/Python:$PYTHONPATH' >> ~/.bash_profile