projects
/
p5sagit/Module-Metadata.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
5167227
)
accomodate a single dot
Karen Etheridge [Thu, 22 Aug 2013 05:48:01 +0000 (22:48 -0700)]
maint/bump-version
patch
|
blob
|
blame
|
history
diff --git
a/maint/bump-version
b/maint/bump-version
index
f3b01e6
..
3434fde
100755
(executable)
--- a/
maint/bump-version
+++ b/
maint/bump-version
@@
-8,6
+8,7
@@
use autodie;
chomp(my $LATEST = qx(grep '^[0-9]' Changes | head -1 | awk '{print \$1}'));
my @parts = split /\./, $LATEST;
+splice(@parts, 1, 0, 0) if @parts == 2;
my $OLD_DECIMAL = sprintf('%i.%03i%03i', @parts);