Sophie

Sophie

distrib > Mandriva > 2011.0 > x86_64 > media > main-release > by-pkgid > 385fe8605b6756161cbb03c6eb5b92eb > scriptlet

myspell-nn_NO-1.0.2-31.noarch.rpm

PREUN

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

POSTIN

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