PREUN
/bin/sh
if [[ "$1" = "0" ]]; then perl -ni -e "/^DICT\s*lt\s*LT\s*lt_LT$/ or print" /usr/share/dict/ooo/dictionary.lst fi ## ## Scripts for hyphenation ##
POSTIN
/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*lt[ \t]*LT[ \t]*lt_LT" /usr/share/dict/ooo/dictionary.lst then echo "DICT lt LT lt_LT" >> /usr/share/dict/ooo/dictionary.lst fi