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