Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > 7ab5490edf175df0084f9b52bd36a0a2 > scriptlet

myspell-lt_LT-1.0.2-0.20031231.9mdk.noarch.rpm

PREUN

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

POSTIN

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