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