Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 47253cc65e38e28a47997c773a44f5f3 > scriptlet

myspell-hyph-ru-1.0.1-0.20020727.5mdk.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