mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
version.pl: snapshot releases *only* have digits in the tail
Snapshot releases have *only* digits in the tail. "git describe" produces tails that have digits in them, but aren't numeric. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
4b9358928b
commit
b6e36102e6
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ if ( $line =~ /^([0-9]+)\.([0-9]+)(.*)$/ ) {
|
|||
die "$0: Invalid input format\n";
|
||||
}
|
||||
|
||||
if ($tail =~ /^\-([0-9]+)/) {
|
||||
if ($tail =~ /^\-([0-9]+)$/) {
|
||||
$snapshot = $1;
|
||||
} else {
|
||||
undef $snapshot;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue