Sophie

Sophie

distrib > Mandriva > 2010.0 > x86_64 > media > main-testing > by-pkgid > 6fd0ca88e29d5cbeedfef33da01e8e60 > scriptlet

myspell-af_ZA-1.0.2-29.1mdv2010.0.noarch.rpm

PREUN

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

POSTIN

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