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