Sophie

Sophie

distrib > Mandriva > 10.1 > i586 > by-pkgid > b612daba03e29bcc2097ffdfbcc5dc21 > scriptlet

myspell-sw_KE-1.0.2-0.20040516.8mdk.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