Sophie

Sophie

distrib > Mandriva > 2010.0 > x86_64 > media > main-testing > by-pkgid > ae84e0d9bb16ef6c9831ce0c8ee82791 > scriptlet

myspell-sw_KE-1.0.2-29mdv2010.0.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