Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-release > by-pkgid > 56d2a7030c8911cbbea77c8817fa6097 > scriptlet

myspell-nl_NL-1.0.2-29mdv2010.1.noarch.rpm

PREUN

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

POSTIN

/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^DICT[ \t]*nl[ \t]*NL[ \t]*nl_NL" /usr/share/dict/ooo/dictionary.lst
then
  echo "DICT nl NL nl_NL" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^HYPH[ \t]*nl[ \t]*NL[ \t]*hyph_nl_NL" /usr/share/dict/ooo/dictionary.lst
then
  echo "HYPH nl NL hyph_nl_NL" >> /usr/share/dict/ooo/dictionary.lst
fi