File: do-build-deb

package info (click to toggle)
wxpython3.0 3.0.2.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 482,760 kB
  • ctags: 518,293
  • sloc: cpp: 2,127,226; python: 294,045; makefile: 51,942; ansic: 19,033; sh: 3,013; xml: 1,629; perl: 17
file content (44 lines) | stat: -rwxr-xr-x 970 bytes parent folder | download | duplicates (4)
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
#!/bin/bash
# ---------------------------------------------------------------------------

set -o errexit
#set -o xtrace

echo "-=-=-=-  Hello from $HOSTNAME  -=-=-=-"

VERSION=$1
VER2=$2
CHARTYPE=$3


export DEBFULLNAME="Robin Dunn"
export DEBEMAIL=robin@alldunn.com
export DEBSIGN_KEYID="Robin Dunn <robin@alldunn.com>"
export DEBUILD_DPKG_BUILDPACKAGE_OPTS="-i -ICVS -I.svn"

tar xzf wxwidgets${VER2}_${VERSION}.orig.tar.gz

cd wxwidgets$VER2-$VERSION

CLVERSION=`dpkg-parsechangelog  | sed -n 's/Version: //p' | sed 's/-.*//'`
if [ $CLVERSION != $VERSION ]; then
    dch --newversion $VERSION-0 "automated build"
fi


if [ $CHARTYPE = both ]; then
    touch debian/control.in
    WX_UNICODE=0 debian/rules debian/control
    WX_UNICODE=0 dpkg-buildpackage -rfakeroot
    fakeroot ./debian/rules clean
fi

touch debian/control.in
debian/rules debian/control
dpkg-buildpackage -rfakeroot 

cd ..
rm -r wxwidgets$VER2-$VERSION

echo "-=-=-=-  Goodbye!  -=-=-=-"
exit 0