Skip to content

Commit

Permalink
Recognize a.b.c-XXX versions
Browse files Browse the repository at this point in the history
  • Loading branch information
azeey committed Jun 10, 2014
1 parent 2f26b28 commit a61ce7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/nescc.in
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ if ($print_version) {
exit 0;
}

# Compute numeric version, assumes PACKAGE_VERSION is of the form a.b.cXXX
# Compute numeric version, assumes PACKAGE_VERSION is of the form a.b.c-XXX
# where XXX is any alphanumeric suffix, b, c are optional and between 0 and 9
$_ = "@PACKAGE_VERSION@";
if (/^(\d*)([a-zA-Z]\w*)?$/) {
Expand All @@ -120,7 +120,7 @@ if (/^(\d*)([a-zA-Z]\w*)?$/) {
$v_a = $1;
$v_b = $2;
$v_c = 0;
} elsif (/^(\d*)\.(\d)\.(\d)([a-zA-Z]\w*)?$/) {
} elsif (/^(\d*)\.(\d)\.(\d)([a-zA-Z-]\w*)?$/) {
$v_a = $1;
$v_b = $2;
$v_c = $3;
Expand Down

0 comments on commit a61ce7d

Please sign in to comment.