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 <[email protected]>
  • 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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4.0.0-beta.1
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
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.