Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > 80fbc6fbe3df7b1719647b58575e6b43 > scriptlet

myspell-nb_NO-1.0.2-30.mga1.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