Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > media > main > by-pkgid > c2d25e343b7aee53463279715eb7b4eb > scriptlet

myspell-hyph-ru-1.0.2-0.20020727.9mdk.noarch.rpm

PREUN

/bin/sh
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^HYPH\s*ru\s*RU\s*hyph_ru$/ or print" /usr/share/dict/ooo/dictionary.lst
fi

POSTIN

/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^HYPH[ \t]*ru[ \t]*RU[ \t]*hyph_ru" /usr/share/dict/ooo/dictionary.lst
then
  echo "HYPH ru RU hyph_ru" >> /usr/share/dict/ooo/dictionary.lst
fi