Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > fd73ad5a966479322f9d0fc1fe25a626 > scriptlet

myspell-am_AM-1.0.2-23mdv2009.0.noarch.rpm

PREUN

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

POSTIN

/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^DICT[ \t]*am[ \t]*AM[ \t]*am_AM" /usr/share/dict/ooo/dictionary.lst
then
  echo "DICT am AM am_AM" >> /usr/share/dict/ooo/dictionary.lst
fi