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