]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_md5sums
r193: Initial Import
[debhelper.git] / dh_md5sums
index 76b87e825d9fff9af04e47ba1024e0462f3730f1..2b62629280f67aab5c863102d733d7776fb886c7 100755 (executable)
@@ -27,7 +27,12 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
                }
                close CONFF;
        }
-
+       
+       # See if we should exclude other files.
+       if (defined($dh{EXCLUDE_FIND}) && $dh{EXCLUDE_FIND} ne '') {
+               $exclude.="! \\( $dh{EXCLUDE_FIND} \\) ";
+       }
+       
        $olddir=getcwd();
        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.