Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added osx run wrapper for make

  • Loading branch information...
commit 1d8d5ea69dc57b99cd43bd479af7a41d14cada3f 1 parent 4845721
@timlinux timlinux authored
Showing with 31 additions and 1 deletion.
  1. +0 −1  .gitignore
  2. +31 −0 runmake-osx.sh
View
1  .gitignore
@@ -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
31 runmake-osx.sh
@@ -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
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.