Sophie

Sophie

distrib > Mandriva > 9.0 > x86_64 > media > main > by-pkgid > 175db24cedc30685d01b1d4a48833ced > scriptlet

myspell-da_DK-1.0.1-0.20020626.4mdk.noarch.rpm

PREUN

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

POSTIN

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