Filter out all META.* and *.ini files from %doc
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 <contyk@redhat.com>
This commit is contained in:
4
cpanspec
4
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"
|
||||
|
||||
Reference in New Issue
Block a user