Sophie

Sophie

distrib > Mandriva > 10.2 > i586 > media > main > by-pkgid > 9fa50f18981dc34db3f0cfc4bb3c768a > scriptlet

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

PREUN

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

POSTIN

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