Sophie

Sophie

distrib > Mandriva > 2010.0 > x86_64 > media > main-release > by-pkgid > 974fd4172eafdc2a8c0704da009088ae > scriptlet

myspell-cs_CZ-1.0.2-28mdv2010.0.noarch.rpm

PREUN

/bin/sh
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^DICT\s*cs\s*CZ\s*cs_CZ$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^HYPH\s*cs\s*CZ\s*hyph_cs_CZ$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^THES\s*cs\s*CZ\s*th_cs_CZ$/ or print" /usr/share/dict/ooo/dictionary.lst
fi

POSTIN

/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^DICT[ \t]*cs[ \t]*CZ[ \t]*cs_CZ" /usr/share/dict/ooo/dictionary.lst
then
  echo "DICT cs CZ cs_CZ" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^HYPH[ \t]*cs[ \t]*CZ[ \t]*hyph_cs_CZ" /usr/share/dict/ooo/dictionary.lst
then
  echo "HYPH cs CZ hyph_cs_CZ" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^THES[ \t]*cs[ \t]*CZ[ \t]*th_cs_CZ" /usr/share/dict/ooo/dictionary.lst
then
  echo "THES cs CZ th_cs_CZ" >> /usr/share/dict/ooo/dictionary.lst
fi