From 1e6dea44772a0c1f57e7cd50ff12e35a1cff0b96 Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 17 Aug 1999 04:34:24 +0000 Subject: r11: Initial revision --- dh_md5sums | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 dh_md5sums (limited to 'dh_md5sums') diff --git a/dh_md5sums b/dh_md5sums new file mode 100755 index 0000000..634e2fd --- /dev/null +++ b/dh_md5sums @@ -0,0 +1,22 @@ +#!/bin/sh -e +# +# Generate a DEBIAN/md5sums file, that lists the md5sums of all +# non-conffiles in the package + +PATH=debian:$PATH:/usr/lib/debhelper +. dh_lib + +for PACKAGE in $DH_DOPACKAGES; do + TMP=`tmpdir $PACKAGE` + + if [ ! -d "debian/$TMP/DEBIAN" ]; then + doit "install -d debian/$TMP/DEBIAN" + fi + + doit "pushd debian/$TMP" >/dev/null + # Doit isn't smart enough to hande this next command so echo by hand. (sigh) + verbose_echo 'md5sum `find * -type f ! -regex "^DEBIAN/.*"` > DEBIAN/md5sums DEBIAN/md5sums /dev/null" >/dev/null +done -- cgit v1.2.1