Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-testing > by-pkgid > 593887249b5123f9ab4021aebead1ace > scriptlet

myspell-it_IT-1.0.2-29mdv2009.1.noarch.rpm

PREUN

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

POSTIN

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