From: Karen Etheridge Date: Wed, 9 Jul 2014 00:06:35 +0000 (-0700) Subject: fix bump-version X-Git-Tag: v1.002003~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d3faa8a5e5f4460fee2cdba2b2f7911dc52b7e42;p=p5sagit%2FImport-Into.git fix bump-version --- diff --git a/lib/Import/Into.pm b/lib/Import/Into.pm index 2234738..3d93200 100644 --- a/lib/Import/Into.pm +++ b/lib/Import/Into.pm @@ -4,7 +4,7 @@ use strict; use warnings FATAL => 'all'; use Module::Runtime; -our $VERSION = '1.002002'; # 1.2.2 +our $VERSION = '1.002002'; sub _prelude { my $target = shift; diff --git a/maint/bump-version b/maint/bump-version index 8cbc11d..8a345cc 100755 --- a/maint/bump-version +++ b/maint/bump-version @@ -7,7 +7,7 @@ use autodie; chomp(my $LATEST = qx(grep '^[0-9]' Changes | head -1 | awk '{print \$1}')); -my @parts = split /\./, $LATEST; +my @parts = map { m/(\d{1,3})/g } split /\./, $LATEST; push @parts, 0, 0; my $OLD_DECIMAL = sprintf('%i.%03i%03i', @parts);