Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > a601e1ba763b604f213673ce43872f9c > scriptlet

myspell-af_ZA-1.0.2-29mdv2010.1.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