Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > media > main > by-pkgid > 23be804eb547a323d4d0834fa2fb614d > scriptlet

myspell-es_ES-1.0.2-0.20030408.1mdk.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