aboutsummaryrefslogtreecommitdiff
path: root/graphics/tesseract/files/patch-configure.ac
blob: bd46dd15245dabbd7c570006682c862a868631bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- configure.ac.orig
+++ configure.ac
@@ -7,7 +7,7 @@
 # ----------------------------------------
 AC_PREREQ([2.69])
 AC_INIT([tesseract],
-        [m4_esyscmd_s([git describe --abbrev=4 2>/dev/null || cat VERSION])],
+        [m4_esyscmd_s([test -d .git && git describe --abbrev=4 || cat VERSION])],
         [https://github.com/tesseract-ocr/tesseract/issues],,
         [https://github.com/tesseract-ocr/tesseract/])