Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > by-pkgid > be7ba7608c3c43ffe26b91a04c84c5ea > scriptlet

myspell-cs_CZ-1.0.2-0.20030101.1mdk.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