Sophie

Sophie

distrib > Mandriva > 2011.0 > x86_64 > media > main-release > by-pkgid > 28ed8343b0bbba3de3d830c869ea70dd > scriptlet

myspell-fa_IR-1.0.2-31.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