Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-testing > by-pkgid > db5d4ce5e9e86fd504197b317424de8d > scriptlet

myspell-cs_CZ-1.0.2-29mdv2009.1.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