Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > ed109486cdeb3a19cf127a8977e01962 > scriptlet

myspell-hyph-bg-1.0.2-0.20040417.11mdv2007.1.noarch.rpm

PREUN

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

POSTIN

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