-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild_GUI
executable file
·55 lines (45 loc) · 1.45 KB
/
build_GUI
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/sh
cd ifreeda
cd components
qmake -project
awk '{gsub("TEMPLATE = app","TEMPLATE = lib",$0);print $0}' components.pro > t1
awk '{gsub(/INCLUDEPATH \+= \./,"INCLUDEPATH += . ..\nQT",$0);print $0}' t1 > t2
awk '{gsub("QT","QT += qt3support",$0);print $0}' t2 > components.pro
qmake
make staticlib
rm -rf t1 t2
cd ../diagrams
qmake -project
awk '{gsub("TEMPLATE = app","TEMPLATE = lib",$0);print $0}' diagrams.pro > t1
awk '{gsub(/INCLUDEPATH \+= \./,"INCLUDEPATH += . ..\nQT",$0);print $0}' t1 > t2
awk '{gsub("QT","QT += qt3support",$0);print $0}' t2 > diagrams.pro
qmake
make staticlib
rm -rf t1 t2
cd ../dialogs
qmake -project
awk '{gsub("TEMPLATE = app","TEMPLATE = lib",$0);print $0}' dialogs.pro > t1
awk '{gsub(/INCLUDEPATH \+= \./,"INCLUDEPATH += . ..\nQT",$0);print $0}' t1 > t2
awk '{gsub("QT","QT += qt3support",$0);print $0}' t2 > dialogs.pro
qmake
make staticlib
rm -rf t1 t2
cd ../paintings
qmake -project
awk '{gsub("TEMPLATE = app","TEMPLATE = lib",$0);print $0}' paintings.pro > t1
awk '{gsub(/INCLUDEPATH \+= \./,"INCLUDEPATH += . ..\nQT",$0);print $0}' t1 > t2
awk '{gsub("QT","QT += qt3support",$0);print $0}' t2 > paintings.pro
qmake
make staticlib
rm -rf t1 t2
cd ..
qmake
make
if [ "$?" = 0 ]; then
echo "ifREEDA BUILD COMPLETE"
else
echo "***Make error."
exit 1
fi
mv ifreeda ../simulator
echo *iFREEDA installed!*