Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > f00c95e938374c25fbffcf5284cc1c0e > scriptlet

myspell-hyph-uk-1.0.1-0.20021219.5mdk.noarch.rpm

PREUN

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

##
## Files for spell checking
##

POSTIN

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