+debhelper (1.2.41) unstable; urgency=low
+
+ * README: minor typo fix.
+
+ -- Joey Hess <joeyh@master.debian.org> 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
}
$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");
+ }
}
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