Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-testing > by-pkgid > 5100d7efc6b86eca069ba3d2232b66f5 > scriptlet

myspell-ga_IE-1.0.2-29.1mdv2009.1.noarch.rpm

PREUN

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

POSTIN

/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^DICT[ \t]*ga[ \t]*IE[ \t]*ga_IE" /usr/share/dict/ooo/dictionary.lst
then
  echo "DICT ga IE ga_IE" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^HYPH[ \t]*ga[ \t]*IE[ \t]*hyph_ga_IE" /usr/share/dict/ooo/dictionary.lst
then
  echo "HYPH ga IE hyph_ga_IE" >> /usr/share/dict/ooo/dictionary.lst
fi