Sophie

Sophie

distrib > Mandriva > 2009.1 > i586 > by-pkgid > 1e13bb6b8d23afda5a91c1d6c2de6335 > scriptlet

myspell-fr_FR-1.0.2-29mdv2009.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
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^HYPH\s*fr\s*FR\s*hyph_fr_FR$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^THES\s*fr\s*FR\s*th_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
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^HYPH[ \t]*fr[ \t]*FR[ \t]*hyph_fr_FR" /usr/share/dict/ooo/dictionary.lst
then
  echo "HYPH fr FR hyph_fr_FR" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^THES[ \t]*fr[ \t]*FR[ \t]*th_fr_FR" /usr/share/dict/ooo/dictionary.lst
then
  echo "THES fr FR th_fr_FR" >> /usr/share/dict/ooo/dictionary.lst
fi