Sophie

Sophie

distrib > Mageia > 1 > x86_64 > by-pkgid > 2f840a6dada87019c20d2f10714ffdbb > scriptlet

myspell-hu_HU-1.0.2-30.mga1.noarch.rpm

PREUN

/bin/sh
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^DICT\s*hu\s*HU\s*hu_HU$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^HYPH\s*hu\s*HU\s*hyph_hu_HU$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^THES\s*hu\s*HU\s*th_hu_HU$/ or print" /usr/share/dict/ooo/dictionary.lst
fi

POSTIN

/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^DICT[ \t]*hu[ \t]*HU[ \t]*hu_HU" /usr/share/dict/ooo/dictionary.lst
then
  echo "DICT hu HU hu_HU" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^HYPH[ \t]*hu[ \t]*HU[ \t]*hyph_hu_HU" /usr/share/dict/ooo/dictionary.lst
then
  echo "HYPH hu HU hyph_hu_HU" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^THES[ \t]*hu[ \t]*HU[ \t]*th_hu_HU" /usr/share/dict/ooo/dictionary.lst
then
  echo "THES hu HU th_hu_HU" >> /usr/share/dict/ooo/dictionary.lst
fi