Skip to content

Commit 3b3216e

Browse files
committed
Support version names starting with non numeric characters
Not only version names like 4.0.0, but also version names like v4.0.0 or tesseract-4.0.0 are now supported and give the same GENERIC_MAJOR_VERSION = 4. Signed-off-by: Stefan Weil <[email protected]>
1 parent 6d311cc commit 3b3216e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ GENERIC_LIBRARY_NAME=tesseract
4343

4444
# Release versioning. Get versions from PACKAGE_VERSION.
4545
AX_SPLIT_VERSION
46-
GENERIC_MAJOR_VERSION=$AX_MAJOR_VERSION
46+
GENERIC_MAJOR_VERSION=$(echo "$AX_MAJOR_VERSION" | $SED 's/^[[^0-9]]*//')
4747
GENERIC_MINOR_VERSION=$AX_MINOR_VERSION
4848
GENERIC_MICRO_VERSION=`echo "$AX_POINT_VERSION" | $SED 's/^\([[0-9]][[0-9]]*\).*/\1/'`
4949

0 commit comments

Comments
 (0)