Browse Source

add run env linux

tags/1.4.0
Etienne Trimaille 3 years ago
parent
commit
21c3b31e28
1 changed files with 38 additions and 0 deletions
  1. 38
    0
      run-env-linux.sh

+ 38
- 0
run-env-linux.sh View File

@@ -0,0 +1,38 @@
1
+#!/bin/bash
2
+
3
+QGIS_PREFIX_PATH=/usr/local/qgis-2.4
4
+if [ -n "$1" ]; then
5
+    QGIS_PREFIX_PATH=$1
6
+fi
7
+
8
+echo $QGIS_PREFIX_PATH
9
+
10
+
11
+export QGIS_PREFIX_PATH=$QGIS_PREFIX_PATH
12
+export QGIS_PATH=$QGIS_PREFIX_PATH
13
+export LD_LIBRARY_PATH=${QGIS_PREFIX_PATH}/lib
14
+export PYTHONPATH=${QGIS_PREFIX_PATH}/share/qgis/python:${QGIS_PREFIX_PATH}/share/qgis/python/plugins:${PYTHONPATH}
15
+
16
+echo "QGIS PATH: $QGIS_PREFIX_PATH"
17
+export QGIS_DEBUG=0
18
+export QGIS_LOG_FILE=/tmp/inasafe/realtime/logs/qgis.log
19
+export QGIS_DEBUG_FILE=/tmp/inasafe/realtime/logs/qgis-debug.log
20
+
21
+export PATH=${QGIS_PREFIX_PATH}/bin:$PATH
22
+
23
+export INASAFE_WORK_DIR=/tmp/quake
24
+export INASAFE_POPULATION_PATH=`pwd`/realtime/fixtures/exposure/population.tif
25
+export INASAFE_LOCALE=id
26
+
27
+# The following line enables remote logging to sentry and may reveal
28
+# IP address / host name / file system paths (which could include your user
29
+# name)
30
+export INASAFE_SENTRY=1
31
+
32
+echo "This script is intended to be sourced to set up your shell to"
33
+echo "use a QGIS 2.0 built in $QGIS_PREFIX_PATH"
34
+echo
35
+echo "To use it do:"
36
+echo "source $BASH_SOURCE /your/optional/install/path"
37
+echo
38
+echo "Then use the make file supplied here e.g. make guitest"

Loading…
Cancel
Save