Sophie

Sophie

distrib > Mandriva > 9.0 > x86_64 > by-pkgid > 1859e8384e0b1adea6f86e415397fada > scriptlet

myspell-nb_NO-1.0.1-0.20020830.4mdk.noarch.rpm

PREUN

/bin/sh
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^DICT\s*nb\s*NO\s*nb_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]*nb[ \t]*NO[ \t]*nb_NO" /usr/share/dict/ooo/dictionary.lst
then
  echo "DICT nb NO nb_NO" >> /usr/share/dict/ooo/dictionary.lst
fi