forked from ktechlab/ktechlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-developer.sh
More file actions
41 lines (31 loc) · 1000 Bytes
/
run-developer.sh
File metadata and controls
41 lines (31 loc) · 1000 Bytes
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
#!/bin/sh
set -e
set -x
#SCRIPTDIR=$(dirname $(readlink -f "$0"))
case "$(uname -s)" in
Darwin)
echo 'Mac OS X'
readlinkf(){ perl -MCwd -e 'print Cwd::abs_path shift' "$1";}
SCRIPTDIR=$(dirname $(readlinkf "$0"))
;;
# taken from: https://en.wikipedia.org/wiki/Uname
Linux|*BSD)
echo 'Linux'
SCRIPTDIR=$(dirname $(readlink -f "$0"))
;;
CYGWIN*|MINGW32*|MSYS*)
echo 'MS Windows'
SCRIPTDIR=$(dirname $(readlink -f "$0")) # untested
;;
# Add here more strings to compare
#
*)
echo 'other OS, please notify the developers'
SCRIPTDIR=$(dirname $(readlink -f "$0")) # untested
;;
esac
# see about prefix.sh : https://community.kde.org/Get_Involved/development
. "$SCRIPTDIR/build-developer/prefix.sh"
export ASAN_OPTIONS=new_delete_type_mismatch=0
export QT_MESSAGE_PATTERN="%{file} : %{line} %{type} %{function} -- %{message}"
"$SCRIPTDIR/inst-developer/bin/ktechlab" 2>&1 | tee "$SCRIPTDIR/developer-run.log"