Sophie

Sophie

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

myspell-fa_FA-1.0.2-31.noarch.rpm

PREUN

/bin/sh
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^DICT\s*fa\s*FA\s*fa_FA$/ 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]*FA[ \t]*fa_FA" /usr/share/dict/ooo/dictionary.lst
then
  echo "DICT fa FA fa_FA" >> /usr/share/dict/ooo/dictionary.lst
fi