2 # genchanges.sh - generate a changes file for a deb file generated via
3 # the make-kpkg utility
5 # KSRC, KVERS, KMAINT, and KEMAIL are expected to be passed through the
11 MODVERS
=`cat debian/VERSION | sed s/:/\+/`
12 ARCH
=`dpkg --print-architecture`
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"
17 dpkg-genchanges
-b ${KMAINT:+-m"$KMAINT <$KEMAIL>"} -u"$KSRC/.." \
18 -cdebian/control
> "$chfile"