Skip to content

Commit

Permalink
[Template merge] required gtgramtool version
Browse files Browse the repository at this point in the history
  • Loading branch information
flammie committed Jun 12, 2024
1 parent cac606e commit 8116a9b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,9 @@
/test/run-morph-tester.sh
/test/run-yaml-testcases.sh
/src/fst/morphology/test/*-adjective.txt
/src/fst/morphology/test/all*.txt
/src/fst/morphology/test/analysed*.txt
/src/fst/morphology/test/*.txt
/src/fst/morphology/test/filtered*
/src/fst/morphology/test/generate-*-lemmas.sh
/src/fst/morphology/test/generated*.txt
/src/fst/morphology/test/missing_*.txt
/src/fst/morphology/test/phonology/negative-*.txt
/src/fst/morphology/test/phonology/hfst-twolc-error-messages.txt
/src/fst/morphology/test/phonology/pair-*.txt
Expand Down
17 changes: 17 additions & 0 deletions m4/giella-macros.m4
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,23 @@ AS_IF([test "x$enable_grammarchecker" != "xno"],
then: pipx install git+https://github.com/divvun/giellaltgramtools
])]),
AC_MSG_RESULT(yes))
_gtgramtool_min_version=0.7.0
gtgramtool_too_old_message="gtgramtool needs to be updated.
If you installed it with pipx, run:
pipx upgrade GiellaLTGramTools"
AC_MSG_CHECKING([the version of gtgramtool])
AS_IF([test "x${GTGRAMTOOL}" != xno],
[_gtgramtool_version=$( "${GTGRAMTOOL}" --version | sed -e 's/^.*version //')],
[_gtgramtool_version=0])
AC_MSG_RESULT([$_gtgramtool_version])
AS_IF([test "x$enable_grammarchecker" != "xno"],
AC_MSG_CHECKING([whether the gtgramtool version is at least $_gtgramtool_min_version])
AX_COMPARE_VERSION([$_gtgramtool_version], [ge], [$_gtgramtool_min_version],
[gtgramtool_version_ok=yes], [gtgramtool_version_ok=no])
AS_IF([test "x${gtgramtool_version_ok}" != xno],
[AC_MSG_RESULT([$gtgramtool_version_ok])],
[AC_MSG_ERROR([$gtgramtool_too_old_message])]))
# Enable all spellers - default is 'no'
AC_ARG_ENABLE([spellers],
Expand Down

0 comments on commit 8116a9b

Please sign in to comment.