Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-updates > by-pkgid > ad077a8b046912f64f97da5af3c0a5fe > scriptlet

myspell-lv_LV-1.0.2-19.2mdv2008.1.noarch.rpm

PREUN

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

POSTIN

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