PREUN
/bin/sh
if [[ "$1" = "0" ]]; then
perl -ni -e "/^HYPH\s*de\s*DE\s*hyph_de$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
perl -ni -e "/^HYPH\s*de\s*CH\s*hyph_de$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
POSTIN
/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*de[ \t]*DE[ \t]*hyph_de" /usr/share/dict/ooo/dictionary.lst
then
echo "HYPH de DE hyph_de" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*de[ \t]*CH[ \t]*hyph_de" /usr/share/dict/ooo/dictionary.lst
then
echo "HYPH de CH hyph_de" >> /usr/share/dict/ooo/dictionary.lst
fi