From 092d1f70e74cc197215c6c8f401b634f50591830 Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 17 Aug 1999 05:10:37 +0000 Subject: [PATCH] r177: Initial Import --- debian/changelog | 6 ++++++ dh_md5sums | 12 +++++++++--- doc/README | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index d00c059..8fdd8d5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +debhelper (1.2.41) unstable; urgency=low + + * README: minor typo fix. + + -- Joey Hess Sat, 20 Feb 1999 23:30:00 -0800 + debhelper (1.2.40) unstable; urgency=low * Let's just say 1.2.39 is not a good version of debhelper to use and diff --git a/dh_md5sums b/dh_md5sums index 4ab9041..76b87e8 100755 --- a/dh_md5sums +++ b/dh_md5sums @@ -29,7 +29,13 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { } $olddir=getcwd(); - 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"); + complex_doit("cd $TMP ; find * -type f $exclude ! -regex '^DEBIAN/.*' -print0 | xargs -r0 md5sum > DEBIAN/md5sums ; cd $olddir"); + # If the file's empty, no reason to waste inodes on it. + if (-z "$TMP/DEBIAN/md5sums") { + doit("rm","-f","$TMP/DEBIAN/md5sums"); + } + else { + doit("chmod",644,"$TMP/DEBIAN/md5sums"); + doit("chown","root.root","$TMP/DEBIAN/md5sums"); + } } diff --git a/doc/README b/doc/README index 30f2a2c..774f9fd 100644 --- a/doc/README +++ b/doc/README @@ -38,7 +38,7 @@ script. If you would like to embed it into a perl script, here is one way to do that (note the tricky use of backquotes) (also note that I made sure that $1, $2, etc are set with the set command): -print << `EOF` +print << `EOF`; set -- @ARGV #DEBHELPER# EOF -- 2.39.5