Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > fa164a3b0d9c6af650b97508179b930e > scriptlet

myspell-lt_LT-1.0.2-19.2mdv2008.1.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
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^HYPH\s*lt\s*LT\s*hyph_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
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^HYPH[ \t]*lt[ \t]*LT[ \t]*hyph_lt_LT" /usr/share/dict/ooo/dictionary.lst
then
  echo "HYPH lt LT hyph_lt_LT" >> /usr/share/dict/ooo/dictionary.lst
fi