Sophie

Sophie

distrib > Mandriva > 2011.0 > x86_64 > media > main-release > by-pkgid > 397452b4f01554a89b1026f18676e64e > scriptlet

myspell-is_IS-1.0.2-31.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