From bf1eedf57ca0c5f74f72976bd76973811233a695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Fri, 5 Dec 2014 15:05:58 +0100 Subject: [PATCH] Filter out all META.* and *.ini files from %doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit META.json and DistZilla's dist.ini are pretty common these days and we're not interested in them, so let's drop them. Signed-off-by: Petr Ĺ abata --- cpanspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpanspec b/cpanspec index 398e0de..f22e9e2 100755 --- a/cpanspec +++ b/cpanspec @@ -783,14 +783,14 @@ for my $file (@args) { my @doc=sort { $a cmp $b } grep { !/\// - and !/\.(pl|xs|h|c|pm|in|pod|cfg|inl)$/i + and !/\.(pl|xs|h|c|pm|ini?|pod|cfg|inl)$/i and !/^\./ and $_ ne $path and $_ ne "MANIFEST" and $_ ne "MANIFEST.SKIP" and $_ ne "INSTALL" and $_ ne "SIGNATURE" - and $_ ne "META.yml" + and !/^META\..+$/i and $_ ne "NINJA" and $_ ne "configure" and $_ ne "config.guess"