Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > media > main > by-pkgid > 34a645798caf2e5f2738911714ea5c36 > scriptlet

myspell-af_ZA-1.0.2-0.20040727.9mdk.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