Sophie

Sophie

distrib > Mandriva > 9.0 > x86_64 > media > main > by-pkgid > bec0ae9d1b9fcf07082ee0bd7f7de1bf > scriptlet

myspell-it_IT-1.0.1-0.20020903.4mdk.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

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