#!/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