diff options
author | joey <joey> | 2002-02-17 17:52:47 +0000 |
---|---|---|
committer | joey <joey> | 2002-02-17 17:52:47 +0000 |
commit | 5221e81cc5f195b32758617409cdc39e12277b82 (patch) | |
tree | 16cca2fc42f87c00168665693b0626e5d09f72d0 /dh_clean | |
parent | 8e0691a21799ddf303419876e0681df88cfcf56e (diff) | |
download | debhelper-5221e81cc5f195b32758617409cdc39e12277b82.tar.gz |
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-x | dh_clean | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |