Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > 2a90887376cee39d9d9096869a89c489 > scriptlet

myspell-fr_FR-1.0.2-0.20020608.11mdv2007.1.noarch.rpm

PREUN

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

POSTIN

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