[SCM] Debian packaging of dh-make-perl branch, master, updated. debian/0.76-1-41-g783308b
Damyan Ivanov
dmn at debian.org
Tue May 21 20:27:01 UTC 2013
The following commit has been merged in the master branch:
commit 783308b1f31d8a698f95ae640adfb1243f4fa500
Author: Damyan Ivanov <dmn at debian.org>
Date: Tue May 21 23:26:40 2013 +0300
exclude README in the root directory from .docs
"in 9x% we remove it from .docs afterwards"
Closes: #608936 -- not to create ${PACKAGE}.docs for autocreated README
this change is a bit of a "big gun", because it doesn't
really check if README is autogenerated, but hey,
fixing a 90% false-positive hit is better than introducing
a 10% false-negative hit
diff --git a/lib/DhMakePerl/Command/Packaging.pm b/lib/DhMakePerl/Command/Packaging.pm
index 5ff13a7..bc72f3d 100644
--- a/lib/DhMakePerl/Command/Packaging.pm
+++ b/lib/DhMakePerl/Command/Packaging.pm
@@ -820,7 +820,8 @@ sub extract_docs {
substr( $File::Find::name, length($dir) )
)
if (
- /^\b(README|TODO|BUGS|NEWS|ANNOUNCE)\b/i
+ $File::Find::name ne $self->main_dir . '/README'
+ and /^\b(README|TODO|BUGS|NEWS|ANNOUNCE)\b/i
and !/\.(pod|pm)$/
and ( !$self->cfg->exclude
or $File::Find::name !~ $self->cfg->exclude )
--
Debian packaging of dh-make-perl
More information about the Pkg-perl-cvs-commits
mailing list