diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-11-01 12:57:05 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-11-01 12:57:05 -0700 |
commit | b6e36102e65814af1bc7cae8bed415c994563b05 (patch) | |
tree | f6571d80ae8f5c443cbc4d6ad9359b9b4759a77b /version.pl | |
parent | 4b9358928b114caaf34a69d6fdfd3b285b7a72cc (diff) | |
download | nasm-b6e36102e65814af1bc7cae8bed415c994563b05.tar.gz |
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>
Diffstat (limited to 'version.pl')
-rwxr-xr-x | version.pl | 2 |
1 files changed, 1 insertions, 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; |