Sophie

Sophie

distrib > Mandriva > 2010.0 > x86_64 > by-pkgid > ff9a8a98046ae9306cf67b685f209996 > scriptlet

myspell-th_TH-1.0.2-28mdv2010.0.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