Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > 2a7d8aeff709f6a2fc30c638f5eaf44d > scriptlet

myspell-en_CA-1.0.2-19mdv2008.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