summaryrefslogtreecommitdiff
path: root/version.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-11-01 12:57:05 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-11-01 12:57:05 -0700
commitb6e36102e65814af1bc7cae8bed415c994563b05 (patch)
treef6571d80ae8f5c443cbc4d6ad9359b9b4759a77b /version.pl
parent4b9358928b114caaf34a69d6fdfd3b285b7a72cc (diff)
downloadnasm-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-xversion.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/version.pl b/version.pl
index f8088f57..82aa8832 100755
--- a/version.pl
+++ b/version.pl
@@ -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;