Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 82509da89731762cc123beaa1c972257 > scriptlet

myspell-ts_ZA-1.0.2-23mdv2009.0.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