Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > 88f46330e08305f28528e732b5ec229f > scriptlet

myspell-ar_AR-1.0.2-19mdv2008.1.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