Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > media > main-release > by-pkgid > 04e03f80948f7a3b2168d9854f144991 > scriptlet

myspell-hyph-it-1.0.2-0.20030904.9mdk.noarch.rpm

PREUN

/bin/sh
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^HYPH\s*it\s*IT\s*hyph_it$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^HYPH\s*it\s*CH\s*hyph_it$/ or print" /usr/share/dict/ooo/dictionary.lst
fi

POSTIN

/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^HYPH[ \t]*it[ \t]*IT[ \t]*hyph_it" /usr/share/dict/ooo/dictionary.lst
then
  echo "HYPH it IT hyph_it" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^HYPH[ \t]*it[ \t]*CH[ \t]*hyph_it" /usr/share/dict/ooo/dictionary.lst
then
  echo "HYPH it CH hyph_it" >> /usr/share/dict/ooo/dictionary.lst
fi