summaryrefslogtreecommitdiff
path: root/version.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-10-25 12:41:29 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-10-25 12:41:29 -0700
commit9ee0ceadffaf772d597d84bd3b2186f7f1e91cf8 (patch)
tree2775339def8929089c72f35c868206d9ee1e12a2 /version.pl
parent92d36121b99792b5a434c46aad14f14b12811084 (diff)
downloadnasm-9ee0ceadffaf772d597d84bd3b2186f7f1e91cf8.tar.gz
nasm-9ee0ceadffaf772d597d84bd3b2186f7f1e91cf8.tar.bz2
nasm-9ee0ceadffaf772d597d84bd3b2186f7f1e91cf8.zip
For snapshot releases, expand out the mangled version numbers.
For snapshot releases, expand out the mangled version number, e.g. 2.05.00.0.20081025. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'version.pl')
-rwxr-xr-xversion.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/version.pl b/version.pl
index 9ef6d56..f8088f5 100755
--- a/version.pl
+++ b/version.pl
@@ -87,8 +87,12 @@ if ($is_rc) {
$nasm_id = ($nmaj << 24)+($nmin << 16)+($nsmin << 8)+$nplvl;
$mangled_ver = sprintf("%d.%02d", $nmaj, $nmin);
-$mangled_ver .= sprintf(".%02d", $nsmin) if ($nsmin || $nplvl);
-$mangled_ver .= '.'.$nplvl if ($nplvl != 0);
+if ($nsmin || $nplvl || defined($snapshot)) {
+ $mangled_ver .= sprintf(".%02d", $nsmin);
+ if ($nplvl || defined($snapshot)) {
+ $mangled_ver .= '.'.$nplvl;
+ }
+}
($mtail = $tail) =~ tr/-/./;
$mangled_ver .= $mtail;