Sophie

Sophie

distrib > Mandriva > 2010.0 > x86_64 > media > main-testing > by-pkgid > 694165f777befc1e8b574a61d31c146a > scriptlet

myspell-en_CA-1.0.2-29mdv2010.0.noarch.rpm

PREUN

/bin/sh
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^DICT\s*en\s*CA\s*en_CA$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^HYPH\s*en\s*CA\s*hyph_en_CA$/ or print" /usr/share/dict/ooo/dictionary.lst
fi

POSTIN

/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^DICT[ \t]*en[ \t]*CA[ \t]*en_CA" /usr/share/dict/ooo/dictionary.lst
then
  echo "DICT en CA en_CA" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^HYPH[ \t]*en[ \t]*CA[ \t]*hyph_en_CA" /usr/share/dict/ooo/dictionary.lst
then
  echo "HYPH en CA hyph_en_CA" >> /usr/share/dict/ooo/dictionary.lst
fi