Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 5c76c8f2ae23bbc41ca95d858a547c48 > scriptlet

myspell-nn_NO-1.0.2-0.20031013.6.noarch.rpm

PREUN

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

POSTIN

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