Sophie

Sophie

distrib > Mandriva > 9.0 > x86_64 > media > main > by-pkgid > 3af88a1e026b1adb22500d69efb9b565 > scriptlet

myspell-hyph-en-1.0.1-0.20020727.4mdk.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