summaryrefslogtreecommitdiff
path: root/dh_clean
diff options
context:
space:
mode:
authorjoey <joey>2002-02-17 17:52:47 +0000
committerjoey <joey>2002-02-17 17:52:47 +0000
commit5221e81cc5f195b32758617409cdc39e12277b82 (patch)
tree16cca2fc42f87c00168665693b0626e5d09f72d0 /dh_clean
parent8e0691a21799ddf303419876e0681df88cfcf56e (diff)
r510: * Thanks to Benjamin Drieu <benj@debian.org>, dh_installdocs -X now works.
I had to modify his patch to use cp --parents, since -P spews warnings now. Also, I made it continue to use cp -a if nothing is excluded, which is both faster, and means this patch is less likely to break anything if it turns out to be buggy. Also, stylistic changes. Closes: #40649 * Implemented -X for dh_installexamples as well. * dh_clean -X substvars will also work now. Closes: #66890
Diffstat (limited to 'dh_clean')
-rwxr-xr-xdh_clean9
1 files changed, 6 insertions, 3 deletions
diff --git a/dh_clean b/dh_clean
index 095844a..9583a55 100755
--- a/dh_clean
+++ b/dh_clean
@@ -62,10 +62,12 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
my $ext=pkgext($package);
if (! $dh{D_FLAG}) {
- doit("rm","-f","debian/${ext}substvars");
+ doit("rm","-f","debian/${ext}substvars")
+ unless excludefile("debian/${ext}substvars");
}
- doit ("rm","-rf",$tmp);
+ doit ("rm","-rf",$tmp)
+ unless excludefile($tmp);
}
if (! $dh{D_FLAG}) {
@@ -74,7 +76,8 @@ if (! $dh{D_FLAG}) {
}
if (! $dh{K_FLAG}) {
- doit("rm","-f","debian/files");
+ doit("rm","-f","debian/files")
+ unless excludefile("debian/files");
}
# These are all debhelper temp files, and so it is safe to