Sophie

Sophie

distrib > Mandriva > 9.0 > x86_64 > media > main > by-pkgid > 1dbb528a342340ef19276851b2cbb813 > scriptlet

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