Permalink
Browse files

all-caps files will be listed in %doc

  • Loading branch information...
1 parent dabf329 commit deaab14dcc7bf8e9db69794caeda1f0500af31d6 @jquelin committed Jun 23, 2011
Showing with 5 additions and 1 deletion.
  1. +1 −0 Changes
  2. +4 −1 lib/CPANPLUS/Dist/Mageia.pm
View
@@ -2,6 +2,7 @@ Revision history for CPANPLUS-Dist-Mdv
{{$NEXT}}
- only root files can be added in %doc
+ - all-caps files will be listed in %doc
1.111720 2011-06-21 16:27:57 Europe/Paris
- removing default %clean section
@@ -161,7 +161,10 @@ sub prepare {
grep { $_ ne "perl" } @reqs;
my @docfiles =
uniq
- grep { /(README|Change(s|log)|LICENSE|META.(json|yml))$/i }
+ grep {
+ ( /^[A-Z.]+$/ && !/^MANIFEST/ ) ||
+ m{^(Change(s|log)|META.(json|yml)|(ex|s)amples?|e[gx]|demos?)$}i
+ }
map { basename $_ }
grep { m!^[^/]+/[^/]+$! } # only interested in root files
@{ $module->status->files };

0 comments on commit deaab14

Please sign in to comment.