Sophie

Sophie

distrib > Mandriva > 2009.1 > i586 > by-pkgid > c5f6cece5384c84746653a6a00383b89 > scriptlet

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