Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-release > by-pkgid > 4d280425d755df50e282017c39d1154a > scriptlet

myspell-is_IS-1.0.2-27mdv2009.1.noarch.rpm

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