From: joey Date: Tue, 17 Aug 1999 04:52:44 +0000 (+0000) Subject: r90: Initial Import X-Git-Tag: debian_version_0_1~143 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c23376be4411c256f140eda7ca2587bb77704683;p=debhelper.git r90: Initial Import --- diff --git a/debian/changelog b/debian/changelog index 123204f..e37b9d7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +debhelper (0.93) unstable; urgency=low + + * Depend on file, since several dh_*'s use it. + + -- Joey Hess Fri, 19 Jun 1998 21:43:51 -0700 + debhelper (0.92) unstable; urgency=low * dh_gencontrol: pass -isp to dpkg-gencontrol to make it include section diff --git a/dh_md5sums b/dh_md5sums index 40cb7ab..9c47a90 100755 --- a/dh_md5sums +++ b/dh_md5sums @@ -13,15 +13,15 @@ for PACKAGE in $DH_DOPACKAGES; do doit "install -d $TMP/DEBIAN" fi - complex_doit "find $TMP/* -type f ! -regex '^$TMP/DEBIAN/.*' | sed s:$TMP:: | sort > $TMP/DEBIAN/allfiles" # Check if we should exclude conffiles. if [ ! "$DH_INCLUDE" -a -r $TMP/DEBIAN/conffiles ]; then - complex_doit "sort $TMP/DEBIAN/conffiles | comm -13 - $TMP/DEBIAN/allfiles > $TMP/DEBIAN/allfiles.new" - doit "mv $TMP/DEBIAN/allfiles.new $TMP/DEBIAN/allfiles" + # Generate exclude regexp. Using perl here may be overkill, + # but it does insure conffiles with spaces in them work. + exclude=`perl -ne 'chomp; s/^\///; print "! -path \"$_\" "' $TMP/DEBIAN/conffiles` fi + olddir=`pwd` - complex_doit "cd $TMP ; sed 's:^/::' < DEBIAN/allfiles | xargs md5sum > DEBIAN/md5sums ; cd $olddir" + complex_doit "cd $TMP ; find * -type f $exclude ! -regex '^DEBIAN/.*' -print0 | xargs -0 md5sum > DEBIAN/md5sums ; cd $olddir" doit "chmod 644 $TMP/DEBIAN/md5sums" doit "chown root.root $TMP/DEBIAN/md5sums" - doit "rm -f $TMP/DEBIAN/allfiles" done