Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > by-pkgid > b5084a624f76ce51e9f6d1eb903df596 > scriptlet

myspell-sw_KE-1.0.2-29.1mdv2009.1.noarch.rpm

PREUN

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

POSTIN

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