forked from x42/libltc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-deb.sh
More file actions
executable file
·38 lines (28 loc) · 802 Bytes
/
build-deb.sh
File metadata and controls
executable file
·38 lines (28 loc) · 802 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
#!/bin/sh
PACKAGE=libltc
DEBRELEASE=$(head -n1 debian/changelog | cut -d ' ' -f 2 | sed 's/[()]*//g')
TMPDIR=/tmp/$PACKAGE-${DEBRELEASE}
rm -rf ${TMPDIR}
GITBRANCH=${GITBRANCH:-master}
echo "debian -export-ignore" >> .git/info/attributes
git-buildpackage \
--git-upstream-branch=$GITBRANCH --git-debian-branch=$GITBRANCH \
--git-upstream-tree=branch \
--git-export-dir=${TMPDIR} --git-cleaner=/bin/true \
--git-force-create \
-rfakeroot $@
ERROR=$?
ed -s .git/info/attributes > /dev/null << EOF
/debian -export-ignore
d
wq
EOF
if test $ERROR != 0; then
exit $ERROR
fi
lintian -i --pedantic ${TMPDIR}/${PACKAGE}_${DEBRELEASE}_*.changes \
| tee /tmp/${PACKAGE}.issues
echo
ls ${TMPDIR}/${PACKAGE}_${DEBRELEASE}_*.changes
echo
echo dput rg42 ${TMPDIR}/${PACKAGE}_${DEBRELEASE}_*.changes