Sophie

Sophie

distrib > Mandriva > 2010.0 > x86_64 > media > main-testing > by-pkgid > 319d1ea49abc07b01473b820c720c434 > scriptlet

myspell-hr_HR-1.0.2-29.1mdv2010.0.noarch.rpm

PREUN

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

POSTIN

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