Skip to content

Commit

Permalink
configure: Get version string from git or from VERSION file (#1380)
Browse files Browse the repository at this point in the history
Use git to create the version string if possible.
Otherwise get the version from the VERSION file.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil authored and zdenop committed Mar 12, 2018
1 parent 2d319cb commit 8fb6874
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions VERSION
@@ -0,0 +1 @@
4.0.0-beta.1
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -7,7 +7,7 @@
# ----------------------------------------
AC_PREREQ([2.59])
AC_INIT([tesseract],
[4.0.0-beta.1],
[m4_esyscmd([echo -n $(test -d .git && git describe --abbrev=4 || cat VERSION)])],
[https://github.com/tesseract-ocr/tesseract/issues],,
[https://github.com/tesseract-ocr/tesseract/])
AC_PROG_CXX([g++ clang++])
Expand Down

0 comments on commit 8fb6874

Please sign in to comment.