-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdomake
executable file
·101 lines (79 loc) · 2.67 KB
/
domake
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#! /bin/bash
echo "#================================================"
echo "Starting Build"
echo "Timestamp"
date -u
echo "#================================================"
echo
./stamp-eepe-gen
VER=$(svn info | awk '/^Revision:/{print $2}')
let "VER+=1"
cd src
echo
echo "#================================================"
echo "Generate Translation Files"
echo "#================================================"
echo
./gen_ts
cd ..
echo
echo "#================================================"
echo "Build Windows Version"
echo "#================================================"
echo
cd winbuild
qmake ../src/eepe.pro -spec win32-g++-cross
make
mv -v release/eepe.exe .
#must copy win32-g++-cross directory to Qt mkspec directory (/usr/share/qt4/mkspecs)
echo
echo "#================================================"
echo "Package Windows Version"
echo "#================================================"
echo
makensis eePe.nsi
mv -v eePeInstall.exe ../
#must copy .nsh file to correct position
cd ..
echo
echo "#================================================"
echo "Build Linux i386 Version"
echo "#================================================"
echo
cd linux32build
qmake ../src/eepe.pro -spec linux-g++-32 -r
make
#If build doesn't work you might need to link libraries in to /usr/bin/i386-linux-gnu/
#You might also need to force libraries -->
#in: /usr/share/qt4/mkspecs/linux-g++-32/qmake.conf
#to: QMAKE_LIBDIR_QT = /usr/lib/i386-linux-gnu/
echo
echo "#================================================"
echo "Package Linux i386 Version"
echo "#================================================"
echo
cp -v eepe ../src/
#install copies eepe from src folder.
cp -vf ../description-pak .
sudo checkinstall -D --nodoc -y --pkgname=eepe --arch=i386 --pkgrelease=1 --pkgversion=$VER --maintainer=erazz --backup=no --install=no --requires="libqt4-gui ,libqt4-network ,libqt4-core ,libqt4-xml ,avrdude"
mv -vf "eepe_"$VER"-1_i386.deb" ../eepe-i386.deb
cd ..
echo
echo "#================================================"
echo "Build Linux amd64 Version"
echo "#================================================"
echo
cd linux64build
qmake ../linux/eepeLinux.pro -spec linux-g++-64 -r
make
echo
echo "#================================================"
echo "Package Linux amd64 Version"
echo "#================================================"
echo
cp -v eepe ../src/
#install copies eepe from src folder.
cp -vf ../description-pak .
sudo checkinstall -D --nodoc -y --pkgname=eepe --arch=amd64 --pkgrelease=1 --pkgversion=$VER --maintainer=erazz --backup=no --install=no --requires="libqt4-gui ,libqt4-network ,libqt4-core ,libqt4-xml ,avrdude"
mv -vf "eepe_"$VER"-1_amd64.deb" ../eepe-amd64.deb
cd ..