-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathrun.sh
executable file
·54 lines (47 loc) · 949 Bytes
/
run.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
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
if [ "$1" = "clean" ]; then
make distclean
echo "cleaning"
fi
if [ "$1" = "" ]; then
echo "release, debug, profile, ci, cli"
fi
if [ "$1" = "release" ]; then
make distclean
set -e
qmake6 CONFIG+=release FastTrack.pro
make
make check
make clean
src/build/fasttrack
fi
if [ "$1" = "debug" ]; then
set -e
qmake6 CONFIG+=debug QMAKE_CXXFLAGS+="-Wall -Wextra -g -Wconversion" FastTrack.pro
make
make check
src/build/fasttrack
fi
if [ "$1" = "profile" ]; then
set -e
qmake6 QMAKE_CXXFLAGS+=-pg QMAKE_LFLAGS+=-pg CONFIG+=debug FastTrack.pro
make
make check
src/build/fasttrack
gprof src/build/fasttrack src/build/gmon.out > profiling.txt
fi
if [ "$1" = "ci" ]; then
make distclean
set -e
qmake6 CONFIG+=release src/FastTrack.pro
make
fi
if [ "$1" = "cli" ]; then
make distclean
set -e
qmake6 CONFIG+=release src/FastTrack-Cli.pro
make
make check
make clean
cd build_cli
fi