Sophie

Sophie

distrib > Mandriva > 9.0 > x86_64 > by-pkgid > fbb09c9796eddff9898d8596c1e4c28d > scriptlet

myspell-es_ES-1.0.1-0.20020904.4mdk.noarch.rpm

PREUN

/bin/sh
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^DICT\s*es\s*ES\s*es_ES$/ or print" /usr/share/dict/ooo/dictionary.lst
fi

POSTIN

/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^DICT[ \t]*es[ \t]*ES[ \t]*es_ES" /usr/share/dict/ooo/dictionary.lst
then
  echo "DICT es ES es_ES" >> /usr/share/dict/ooo/dictionary.lst
fi