r49173 - /trunk/dh-make-perl/lib/DhMakePerl.pm

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Tue Dec 22 15:34:00 UTC 2009


Author: dmn
Date: Tue Dec 22 15:33:19 2009
New Revision: 49173

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=49173
Log:
ignore files ending in .pod and .pm when detecting docs

these are either module documentation or modules and shall be installed by
upstream build system

Modified:
    trunk/dh-make-perl/lib/DhMakePerl.pm

Modified: trunk/dh-make-perl/lib/DhMakePerl.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/lib/DhMakePerl.pm?rev=49173&op=diff
==============================================================================
--- trunk/dh-make-perl/lib/DhMakePerl.pm (original)
+++ trunk/dh-make-perl/lib/DhMakePerl.pm Tue Dec 22 15:33:19 2009
@@ -980,8 +980,11 @@
                 return;
             }
             push( @docs, substr( $File::Find::name, length($dir) ) )
-                if ( /^\b(README|TODO|BUGS|NEWS|ANNOUNCE)\b/i
-                and ( !$self->cfg->exclude or $File::Find::name !~ $self->cfg->exclude )
+                if (
+                    /^\b(README|TODO|BUGS|NEWS|ANNOUNCE)\b/i
+                and !/\.(pod|pm)$/
+                and ( !$self->cfg->exclude
+                    or $File::Find::name !~ $self->cfg->exclude )
                 and !/\.svn-base$/
                 );
         },




More information about the Pkg-perl-cvs-commits mailing list