Permalink
Browse files

Added osx run wrapper for make

  • Loading branch information...
timlinux committed Feb 7, 2013
1 parent 4845721 commit 1d8d5ea69dc57b99cd43bd479af7a41d14cada3f
Showing with 31 additions and 1 deletion.
  1. +0 −1 .gitignore
  2. +31 −0 runmake-osx.sh
View
@@ -40,5 +40,4 @@ realtime/fixtures/context/boundaries.*
pylint.log
safe/test/data/hazard/keywordless_layer.tif.aux.xml
scripts/nightly-build-repo/apache.conf
-runmake*
.idea/dictionaries/*
View
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+QGISPATH=/Applications/QGIS.app
+
+export QGIS_PREFIX_PATH=${QGISPATH}/contents/MacOS
+
+echo "QGIS PATH: $QGIS_PREFIX_PATH"
+
+PYTHONPATH=${PYTHONPATH}:"${QGISPATH}/Contents/Resources/python"
+PYTHONPATH=${PYTHONPATH}:'/Library/Frameworks/GDAL.framework/Versions/1.9/Python/2.7/site-packages'
+export PYTHONPATH
+
+export QGIS_DEBUG=0
+export QGIS_LOG_FILE=/tmp/inasafe/realtime/logs/qgis.log
+export QGIS_DEBUG_FILE=/tmp/inasafe/realtime/logs/qgis-debug.log
+
+
+export INASAFE_WORK_DIR=/tmp/quake
+export INASAFE_POPULATION_PATH=`pwd`/realtime/fixtures/exposure/population.tif
+export INASAFE_LOCALE=id
+
+echo "PYTHON PATH: $PYTHONPATH"
+
+if test -z "$1"
+then
+ make quicktest
+else
+ make $1
+fi
+
+

0 comments on commit 1d8d5ea

Please sign in to comment.