Import Debian changes 1.8.5-1
[hcoop/debian/openafs.git] / debian / module / genchanges
diff --git a/debian/module/genchanges b/debian/module/genchanges
new file mode 100644 (file)
index 0000000..5aa47cc
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+# genchanges.sh - generate a changes file for a deb file generated via
+#      the make-kpkg utility
+
+# KSRC, KVERS, KMAINT, and KEMAIL are expected to be passed through the
+# environment.
+
+set -e
+umask 022
+
+MODVERS=`cat debian/VERSION | sed s/:/\+/`
+ARCH=`dpkg --print-architecture`
+
+mprefix=`grep Package: debian/control.in | cut -d' ' -f 2 | cut -d= -f 1`
+chfile="$KSRC/../$mprefix${KVERS}${INT_SUBARCH}_${MODVERS}_${ARCH}.changes"
+
+dpkg-genchanges -b ${KMAINT:+-m"$KMAINT <$KEMAIL>"} -u"$KSRC/.." \
+    -cdebian/control > "$chfile"
+#debsign "$chfile"