From a014cec040685ecffc57af30abf792a980b34ddc Mon Sep 17 00:00:00 2001 From: Martin Schroschk <martin.schroschk@tu-dresden.de> Date: Wed, 25 Aug 2021 13:03:54 +0200 Subject: [PATCH] Okay, now --- .../util/check-spelling-changes.sh | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/doc.zih.tu-dresden.de/util/check-spelling-changes.sh b/doc.zih.tu-dresden.de/util/check-spelling-changes.sh index 9f8cefb63..a0b5fb754 100755 --- a/doc.zih.tu-dresden.de/util/check-spelling-changes.sh +++ b/doc.zih.tu-dresden.de/util/check-spelling-changes.sh @@ -5,13 +5,11 @@ set -euo pipefail scriptpath=${BASH_SOURCE[0]} basedir=`dirname "$scriptpath"` basedir=`dirname "$basedir"` -wordlistfile=$basedir/wordlist.aspell +wordlistfile=$(realpath $basedir/wordlist.aspell) echo "scriptpath: $scriptpath" echo "basedir: $basedir" echo "wordlistfile: $wordlistfile" -wordlistfile=$(realpath $wordlistfile) -echo "wordlistfile: $wordlistfile" function getNumberOfAspellOutputLines(){ cat - | aspell -p "$wordlistfile" --ignore 2 -l en_US list --mode=markdown | sort -u | wc -l @@ -46,15 +44,15 @@ while read oldfile; do #Remove the prefix "b/" newfile=${newfile:2} current_count=`cat "$newfile" | getNumberOfAspellOutputLines` - echo "======" - echo "$current_count" - echo "$newfile" - echo "pwd $PWD" - echo "wordlistfile: $wordlistfile" - grep ZIH $wordlistfile - echo "---" - cat $newfile | aspell -p "$wordlistfile" --ignore 2 -l en_US list --mode=markdown - echo "======" +# echo "======" +# echo "$current_count" +# echo "$newfile" +# echo "pwd $PWD" +# echo "wordlistfile: $wordlistfile" +# grep ZIH $wordlistfile +# echo "---" +# cat $newfile | aspell -p "$wordlistfile" --ignore 2 -l en_US list --mode=markdown +# echo "======" fi if [ $current_count -gt $previous_count ]; then echo "-- File $newfile" -- GitLab