forked from inasafe/inasafe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-env-linux.sh
executable file
·42 lines (33 loc) · 1.41 KB
/
run-env-linux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
QGIS_PREFIX_PATH=/usr/local/qgis-2.18
if [ -n "$1" ]; then
QGIS_PREFIX_PATH=$1
fi
echo $QGIS_PREFIX_PATH
export QGIS_PREFIX_PATH=$QGIS_PREFIX_PATH
export QGIS_PATH=$QGIS_PREFIX_PATH
export LD_LIBRARY_PATH=${QGIS_PREFIX_PATH}/lib
export PYTHONPATH=${QGIS_PREFIX_PATH}/share/qgis/python:${QGIS_PREFIX_PATH}/share/qgis/python/plugins:${PYTHONPATH}
echo "QGIS PATH: $QGIS_PREFIX_PATH"
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 PATH=${QGIS_PREFIX_PATH}/bin:$PATH
export INASAFE_WORK_DIR=/tmp/inasafe
export INASAFE_POPULATION_PATH=`pwd`/realtime/fixtures/exposure/population.tif
export INASAFE_LOCALE=id
export INASAFE_REALTIME_REST_URL=http://localhost:8000/realtime/api/v1/
export INASAFE_REALTIME_REST_USER=test@realtime.inasafe.org
export INASAFE_REALTIME_REST_PASSWORD=t3st4ccount
export INASAFE_REALTIME_REST_LOGIN_URL=http://localhost:8000/realtime/api-auth/login/
# The following line enables remote logging to sentry and may reveal
# IP address / host name / file system paths (which could include your user
# name)
export INASAFE_SENTRY=1
echo "This script is intended to be sourced to set up your shell to"
echo "use a QGIS 2.0 built in $QGIS_PREFIX_PATH"
echo
echo "To use it do:"
echo "source $BASH_SOURCE /your/optional/install/path"
echo
echo "Then use the make file supplied here e.g. make guitest"