From 022682d45aaca01b4f056d52c026774db77223cd Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Sun, 23 Oct 2011 14:53:53 -0700 Subject: [PATCH] version parser now works for any package name --- Makefile.PL | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 0893363..683df01 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,9 +4,13 @@ use ExtUtils::MakeMaker; sub parseversion { -# grab the version number from the debian changelog file +# grab the version number from the debian changelog file. I look for lines line +# +# libpackage-perl (0.02-1) unstable; urgency=low +# +# I parse out the 0.02 part open DCH, 'debian/changelog' or die "Couldn't open debian/changelog"; - my ($version) = =~ /feedgnuplot \s* \( ([0-9\.]+) - \w+ \)/x + my ($version) = =~ /^\S+ \s* \( ([0-9\.]+) - \w+ \)/x or die "Couldn't parse version from debian/changelog"; close DCH;