Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > ed82483ace4a9878b37a23fd91058bbb > scriptlet

myspell-nn_NO-1.0.2-19mdv2008.1.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