Import Debian changes 1.8.5-1
[hcoop/debian/openafs.git] / debian / module / genchanges
1 #!/bin/sh
2 # genchanges.sh - generate a changes file for a deb file generated via
3 # the make-kpkg utility
4
5 # KSRC, KVERS, KMAINT, and KEMAIL are expected to be passed through the
6 # environment.
7
8 set -e
9 umask 022
10
11 MODVERS=`cat debian/VERSION | sed s/:/\+/`
12 ARCH=`dpkg --print-architecture`
13
14 mprefix=`grep Package: debian/control.in | cut -d' ' -f 2 | cut -d= -f 1`
15 chfile="$KSRC/../$mprefix${KVERS}${INT_SUBARCH}_${MODVERS}_${ARCH}.changes"
16
17 dpkg-genchanges -b ${KMAINT:+-m"$KMAINT <$KEMAIL>"} -u"$KSRC/.." \
18 -cdebian/control > "$chfile"
19 #debsign "$chfile"