diff options
author | joey <joey> | 1999-08-17 04:34:25 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 04:34:25 +0000 |
commit | d079e6683cfcbef6a979eb7a02780eebdf480a74 (patch) | |
tree | 7cd6ba28701185b0facf84b98b9f4f92f56a8c3a /dh_md5sums | |
parent | dd838eee7e75da018b2722f0ce4dbccd9f6d1a5d (diff) | |
download | debhelper-d079e6683cfcbef6a979eb7a02780eebdf480a74.tar.gz |
r12: Initial Import
Diffstat (limited to 'dh_md5sums')
-rwxr-xr-x | dh_md5sums | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dh_md5sums b/dh_md5sums new file mode 100755 index 00000000..634e2fd6 --- /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 </dev/null' + md5sum `find * -type f ! -regex "^DEBIAN/.*"` >DEBIAN/md5sums </dev/null + doit "chown root.root DEBIAN/md5sums" + doit "popd 2>/dev/null" >/dev/null +done |