Sophie

Sophie

distrib > Mandriva > 10.2 > i586 > media > main > by-pkgid > 152d5a32f88ed529def44a754063d866 > scriptlet

myspell-thes-es_ES-1.0.2-0.20040712.9mdk.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
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^THES\s*es\s*AR\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
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^THES[ \t]*es[ \t]*AR[ \t]*th_es_ES" /usr/share/dict/ooo/dictionary.lst
then
  echo "THES es AR th_es_ES" >> /usr/share/dict/ooo/dictionary.lst
fi