Revision 9ff5372571fb385eb447352af0b429a53fdb043e authored by Martynas Pumputis on 14 March 2024, 08:57:27 UTC, committed by Martynas Pumputis on 14 March 2024, 08:57:27 UTC
Signed-off-by: Martynas Pumputis <m@lambda.lt>
1 parent 29931c8
Raw File
update-spelling_wordlist.sh
#!/usr/bin/env bash

set -e

# Ensure sort order doesn't depend on locale
export LANG=C
export LC_ALL=C

for word in "$@"
do
    echo "${word}" >> Documentation/spelling_wordlist.txt
done

sort -u Documentation/spelling_wordlist.txt > Documentation/spelling_wordlist.txt.tmp
mv Documentation/spelling_wordlist.txt.tmp Documentation/spelling_wordlist.txt
back to top