Sophie

Sophie

distrib > * > cooker > x86_64 > by-pkgid > c254c29b44099893d86d9d682393c368 > scriptlet

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