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;