forked from teejee2008/ukuu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-deb.sh
executable file
·45 lines (28 loc) · 1.1 KB
/
build-deb.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
#!/bin/bash
backup=`pwd`
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd $DIR
. ./BUILD_CONFIG
sh build-source.sh
build_deb_for_dist() {
dist=$1
arch=$2
echo ""
echo "=========================================================================="
echo " build-deb.sh : $dist-$arch"
echo "=========================================================================="
echo ""
mkdir -pv release/${arch}
echo "-------------------------------------------------------------------------"
pbuilder-dist $dist $arch build release/source/${pkg_name}*.dsc --buildresult release/$arch
if [ $? -ne 0 ]; then cd "$backup"; echo "Failed"; exit 1; fi
echo "--------------------------------------------------------------------------"
cp -pv --no-preserve=ownership release/${arch}/${pkg_name}*.deb release/${pkg_name}-v${pkg_version}-${arch}.deb
if [ $? -ne 0 ]; then cd "$backup"; echo "Failed"; exit 1; fi
echo "--------------------------------------------------------------------------"
}
build_deb_for_dist xenial i386
build_deb_for_dist xenial amd64
#build_deb_for_dist stretch armel
#build_deb_for_dist stretch armhf
cd "$backup"