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:
Petr Šabata
2014-12-05 15:05:58 +01:00
parent 1052ae3f56
commit bf1eedf57c

View File

@@ -783,14 +783,14 @@ for my $file (@args) {
my @doc=sort { $a cmp $b } grep { 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 !/^\./
and $_ ne $path and $_ ne $path
and $_ ne "MANIFEST" and $_ ne "MANIFEST"
and $_ ne "MANIFEST.SKIP" and $_ ne "MANIFEST.SKIP"
and $_ ne "INSTALL" and $_ ne "INSTALL"
and $_ ne "SIGNATURE" and $_ ne "SIGNATURE"
and $_ ne "META.yml" and !/^META\..+$/i
and $_ ne "NINJA" and $_ ne "NINJA"
and $_ ne "configure" and $_ ne "configure"
and $_ ne "config.guess" and $_ ne "config.guess"