Sophie

Sophie

distrib > Mandriva > 9.0 > x86_64 > media > main > by-pkgid > 4a9e1ec31795c971e65415d1b1738857 > scriptlet

myspell-en_CA-1.0.1-0.20020315.4mdk.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

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