Sophie

Sophie

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

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