Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-release > by-pkgid > 0d3dda131316368fc3360b4ccec1acf8 > scriptlet

myspell-fa_IR-1.0.2-27mdv2009.1.noarch.rpm

PREUN

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

POSTIN

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