Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-testing > by-pkgid > dc4ea5037ca3f4c2b23d643dcea776b9 > scriptlet

myspell-bg_BG-1.0.2-29.1mdv2009.1.noarch.rpm

PREUN

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

POSTIN

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