diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-10-25 12:41:29 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-10-25 12:41:29 -0700 |
commit | 9ee0ceadffaf772d597d84bd3b2186f7f1e91cf8 (patch) | |
tree | 2775339def8929089c72f35c868206d9ee1e12a2 /version.pl | |
parent | 92d36121b99792b5a434c46aad14f14b12811084 (diff) | |
download | nasm-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-x | version.pl | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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; |