Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 2edbf735c9b03f20a6458bd0c2648718 > scriptlet

myspell-ts_ZA-1.0.2-19mdv2008.1.noarch.rpm

PREUN

/bin/sh
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^DICT\s*ts\s*ZA\s*ts_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]*ts[ \t]*ZA[ \t]*ts_ZA" /usr/share/dict/ooo/dictionary.lst
then
  echo "DICT ts ZA ts_ZA" >> /usr/share/dict/ooo/dictionary.lst
fi