From b6e36102e65814af1bc7cae8bed415c994563b05 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sat, 1 Nov 2008 12:57:05 -0700 Subject: 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 --- version.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'version.pl') 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; -- cgit v1.2.1