Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > media > main > by-pkgid > c089991afa1c5ee90655a52b38c216a3 > scriptlet

myspell-el_GR-1.0.2-0.20020610.1mdk.noarch.rpm

PREUN

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

POSTIN

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