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
if [[ "$1" = "0" ]]; then
perl -ni -e "/^HYPH\s*lt\s*LT\s*hyph_lt_LT$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
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
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*lt[ \t]*LT[ \t]*hyph_lt_LT" /usr/share/dict/ooo/dictionary.lst
then
echo "HYPH lt LT hyph_lt_LT" >> /usr/share/dict/ooo/dictionary.lst
fi