From 5c38f7a7e76d0c76d9058eee00277c4a74f8e667 Mon Sep 17 00:00:00 2001 From: Andriy Rysin Date: Mon, 25 Mar 2024 10:26:14 -0400 Subject: [PATCH] add do_all.sh --- do_all.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 do_all.sh diff --git a/do_all.sh b/do_all.sh new file mode 100755 index 00000000..4ef2592e --- /dev/null +++ b/do_all.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +OPTS="--parallel" + +[ -f "new_words.lst" ] && { + echo "new_words.lst not merged!" + exit 1 +} + +./gradlew $OPTS sortDict expand diff || exit 1 + +./gradlew checkDups checkReplacements + +if [ "$1" == "-d" ]; then + exec ./gradlew $OTPS deployLtDict +fi + +if [ "$1" == "-z" ]; then + ./gradlew $OPTS deployLtDict || exit 1 + sleep 1 + cd ../grammar/languagetool-test + ./zdep.sh +fi + +if [ "$1" == "-f" ]; then + ./gradlew $OPTS deployLtDict || exit 1 + sleep 1 + cd ../grammar/languagetool-test && \ + ./zdep.sh && \ + ./test_all_bg.sh +fi