projects
/
p5sagit/Distar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
a69e85a
)
calculate version parts correctly for short versions
Graham Knop [Wed, 12 Aug 2015 16:50:28 +0000 (12:50 -0400)]
helpers/bump-version
patch
|
blob
|
blame
|
history
diff --git
a/helpers/bump-version
b/helpers/bump-version
index
6b60641
..
89fac0c
100755
(executable)
--- a/
helpers/bump-version
+++ b/
helpers/bump-version
@@
-116,6
+116,7
@@
sub version_parts {
if (!$dotted && @parts == 2) {
my $dec = pop @parts;
$dec =~ s/_//g;
+ $dec .= "0" x ((- length $dec) % 3);
push @parts, $dec =~ /(\d{1,3})/g;
}
$_ += 0 for @parts;