r27255 - /trunk/dh-make-perl/dh-make-perl
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Tue Nov 25 08:38:59 UTC 2008
Author: dmn
Date: Tue Nov 25 08:38:57 2008
New Revision: 27255
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=27255
Log:
Updated regexp to extract version from basic Module::Install.
Modified:
trunk/dh-make-perl/dh-make-perl
Modified: trunk/dh-make-perl/dh-make-perl
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/dh-make-perl?rev=27255&op=diff
==============================================================================
--- trunk/dh-make-perl/dh-make-perl (original)
+++ trunk/dh-make-perl/dh-make-perl Tue Nov 25 08:38:57 2008
@@ -659,10 +659,19 @@
$vfrom = $4;
}
- elsif ( $file =~ /version\((\S+)\)/s ) {
+ elsif (
+ $file =~ m{
+ \bversion\b\s* # The word version
+ \(?\s* # Optional open-parens
+ (['"]?) # Optional quotes
+ ([\d_.]+) # The actual version.
+ \1 # Optional close-quotes
+ \s*\)? # Optional close-parens.
+ }sx
+ ) {
# Module::Install
- $ver = $1;
+ $ver = $2;
}
$dir = dirname($makefile) || './';
More information about the Pkg-perl-cvs-commits
mailing list