Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > cf3c3211d5863b78222682420b47be38 > scriptlet

myspell-bg_BG-1.0.1-0.20020716.5mdk.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