Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > bc00a57ecee27ad428aff014a2fbf0a4 > scriptlet

myspell-bg_BG-1.0.2-19.2mdv2008.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