forked from ahupowerdns/metronome
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-deb
More file actions
executable file
·43 lines (31 loc) · 794 Bytes
/
build-deb
File metadata and controls
executable file
·43 lines (31 loc) · 794 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
35
36
37
38
39
40
41
42
43
#!/bin/sh
export DEBFULLNAME=${DEBFULLNAME:="PowerDNS.COM BV AutoBuilder"}
export DEBEMAIL=${DEBEMAIL:="noreply@powerdns.com"}
if [ -z "$VERSION" ]; then
if [ -x build-aux/gen-version ]; then
VERSION="$(./build-aux/gen-version)"
elif [ -r .version ]; then
VERSION="$(cat .version)"
else
echo 'Please set $VERSION' >&2
exit 1
fi
fi
if [ -z "$RELEASE" ];then
echo 'Please set $RELEASE' >&2
exit 1
fi
DISTDIR=${DISTDIR:=.}
set -e
set -x
if [ "$DISTDIR" != "." ]; then
rm -rf ${DISTDIR}/debian
cp -r debian/ ${DISTDIR}
fi
cat > ${DISTDIR}/debian/changelog << EOF
metronome (${VERSION}-${RELEASE}) unstable; urgency=medium
* Automatic build
-- ${DEBFULLNAME} <${DEBEMAIL}> $(date -R)
EOF
cd $DISTDIR
DH_OPTIONS=--parallel fakeroot debian/rules binary