Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > d6fdb8755a3ab4d3c366c51c6f215dd1 > scriptlet

myspell-cs_CZ-1.0.1-0.20030101.5mdk.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

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