forked from ktechlab/ktechlab
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun-developer.sh
39 lines (29 loc) · 854 Bytes
/
run-developer.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
#!/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
export PATH="$SCRIPTDIR/inst-developer/bin:$PATH"
export ASAN_OPTIONS=new_delete_type_mismatch=0
"$SCRIPTDIR/inst-developer/bin/ktechlab" 2>&1 | tee "$SCRIPTDIR/developer-run.log"