Sophie

Sophie

distrib > Mandriva > 10.2 > i586 > by-pkgid > f80a074f1a127fd42dccd12462aa830c > scriptlet

myspell-hyph-id-1.0.2-0.20040810.9mdk.noarch.rpm

PREUN

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

POSTIN

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