forked from KangLin/RabbitRemoteControl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_debpackage.sh
More file actions
executable file
·34 lines (27 loc) · 884 Bytes
/
build_debpackage.sh
File metadata and controls
executable file
·34 lines (27 loc) · 884 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
#!/bin/bash
if [ -n "$1" -a -z "$QT_ROOT" ]; then
export QT_ROOT=$1
fi
if [ ! -f /usr/bin/qmake -a -z "$QT_ROOT" ]; then
echo "$0 QT_ROOT RabbitCommon_DIR"
exit -1
fi
if [ -n "$2" -a -z "$RabbitCommon_DIR" ]; then
export RabbitCommon_DIR=$2
fi
if [ -z "$RabbitCommon_DIR" ]; then
export RabbitCommon_DIR=`pwd`/../RabbitCommon
fi
if [ ! -d "$RabbitCommon_DIR" ]; then
echo "$0 QT_ROOT RabbitCommon_DIR"
exit -2
fi
if [ -z "$BUILD_TYPE" ]; then
export BUILD_TYPE=Release
fi
export PATH=$QT_ROOT/bin:$PATH
export LD_LIBRARY_PATH=$QT_ROOT/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=$QT_ROOT/lib/pkgconfig:$PKG_CONFIG_PATH
#fakeroot debian/rules binary
#dpkg-buildpackage -us -uc -b #The -us -uc tell it there is no need to GPG sign the package. the -b is build binary
dpkg-buildpackage -us -uc #The -us -uc tell it there is no need to GPG sign the package