Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > e94ee22a68a23266b6998f868c5ae4fe > scriptlet

myspell-ga_IE-1.0.2-0.20040404.11mdv2007.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

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