Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > by-pkgid > 432bf601f77e4a5cd6124e44b34d3e06 > scriptlet

myspell-hyph-en-1.0.2-0.20020727.1mdk.noarch.rpm

PREUN

/bin/sh
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^HYPH\s*en\s*US\s*hyph_en$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^HYPH\s*en\s*CA\s*hyph_en$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^HYPH\s*en\s*GB\s*hyph_en$/ or print" /usr/share/dict/ooo/dictionary.lst
fi

POSTIN

/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^HYPH[ \t]*en[ \t]*US[ \t]*hyph_en" /usr/share/dict/ooo/dictionary.lst
then
  echo "HYPH en US hyph_en" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^HYPH[ \t]*en[ \t]*CA[ \t]*hyph_en" /usr/share/dict/ooo/dictionary.lst
then
  echo "HYPH en CA hyph_en" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^HYPH[ \t]*en[ \t]*GB[ \t]*hyph_en" /usr/share/dict/ooo/dictionary.lst
then
  echo "HYPH en GB hyph_en" >> /usr/share/dict/ooo/dictionary.lst
fi