mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
version.pl: don't add an extra .00 for subminor if we don't need it
When producing the mangled version number, don't add a subminor if there isn't a patch level or release candidate number. Thus, 2.05p1 is 2.05.00.01, but 2.05 can just be 2.05. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
912595dfc0
commit
b2783e19a3
1 changed files with 2 additions and 1 deletions
|
|
@ -86,7 +86,8 @@ if ($is_rc) {
|
|||
|
||||
$nasm_id = ($nmaj << 24)+($nmin << 16)+($nsmin << 8)+$nplvl;
|
||||
|
||||
$mangled_ver = sprintf("%d.%02d.%02d", $nmaj, $nmin, $nsmin);
|
||||
$mangled_ver = sprintf("%d.%02d", $nmaj, $nmin);
|
||||
$mangled_ver .= sprintf(".%02d", $nsmin) if ($nsmin || $nplvl);
|
||||
$mangled_ver .= '.'.$nplvl if ($nplvl != 0);
|
||||
($mtail = $tail) =~ tr/-/./;
|
||||
$mangled_ver .= $mtail;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue