Sophie

Sophie

distrib > Mandriva > 10.1 > i586 > by-pkgid > 5b1e5252a44e38fa2ab0d2c51cf52958 > scriptlet

myspell-thes-es_ES-1.0.2-0.20040712.8mdk.noarch.rpm

PREUN

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

POSTIN

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