Sophie

Sophie

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

myspell-ar_AR-1.0.2-31.noarch.rpm

PREUN

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

POSTIN

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