Sophie

Sophie

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

myspell-am_AM-1.0.2-29.1mdv2009.1.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