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