PREUN
/bin/sh
if [[ "$1" = "0" ]]; then
perl -ni -e "/^DICT\s*es\s*ES\s*es_ES$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
perl -ni -e "/^HYPH\s*es\s*ES\s*hyph_es_ES$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
perl -ni -e "/^THES\s*es\s*ES\s*th_es_ES$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
POSTIN
/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*es[ \t]*ES[ \t]*es_ES" /usr/share/dict/ooo/dictionary.lst
then
echo "DICT es ES es_ES" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*es[ \t]*ES[ \t]*hyph_es_ES" /usr/share/dict/ooo/dictionary.lst
then
echo "HYPH es ES hyph_es_ES" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] || ! grep -q "^THES[ \t]*es[ \t]*ES[ \t]*th_es_ES" /usr/share/dict/ooo/dictionary.lst
then
echo "THES es ES th_es_ES" >> /usr/share/dict/ooo/dictionary.lst
fi