Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > c8f8fb1b6b03db372bad4ad4aa9532b5 > scriptlet

myspell-fr_FR-1.0.2-19mdv2008.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