Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-release > by-pkgid > 517f460bf7faf4f46a65f02ee7cd0e55 > scriptlet

myspell-th_TH-1.0.2-27mdv2009.1.noarch.rpm

PREUN

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

POSTIN

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