PREUN
/bin/sh
if [[ "$1" = "0" ]]; then perl -ni -e "/^THES\s*sk\s*SK\s*th_sk_SK$/ or print" /usr/share/dict/ooo/dictionary.lst fi ## ## Files for spell checking ##
POSTIN
/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] || ! grep -q "^THES[ \t]*sk[ \t]*SK[ \t]*th_sk_SK" /usr/share/dict/ooo/dictionary.lst then echo "THES sk SK th_sk_SK" >> /usr/share/dict/ooo/dictionary.lst fi