From 0d2cceda62a53283d40e9b08a5f7c5c31c1490d4 Mon Sep 17 00:00:00 2001 From: Sjur N Moshagen Date: Thu, 29 Feb 2024 20:44:52 +0200 Subject: [PATCH] [Template merge] Wrap lemma extraction in for loop to ensure we actually get all lemmas --- .../fstbased/desktop/hfst/accept-all-lemmas.sh.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/tools/spellcheckers/fstbased/desktop/hfst/accept-all-lemmas.sh.in b/test/tools/spellcheckers/fstbased/desktop/hfst/accept-all-lemmas.sh.in index eceb38a2..9fbb2c3e 100755 --- a/test/tools/spellcheckers/fstbased/desktop/hfst/accept-all-lemmas.sh.in +++ b/test/tools/spellcheckers/fstbased/desktop/hfst/accept-all-lemmas.sh.in @@ -28,9 +28,13 @@ checked_lemmas=checked_lemmas.txt ##### Extract lemmas - add additional egrep pattern as parameters: ##### ##### --include "(pattern1|pattern2|...)" ##### ##### --exclude "(pattern1|pattern2|...)" ##### -@GTCORE@/scripts/extract-lemmas.sh \ +rm -f $lemmas +touch $lemmas +for f in $source_files; do + @GTCORE@/scripts/extract-lemmas.sh \ --exclude "(CmpN/Only|ShCmp|\+Cmp\/SplitR| Rreal | R | Rnoun |\+V\+|NOT-TO-LEMMATEST)" \ - $source_files > $lemmas + $f >> $lemmas +done ####### Start testing: #######