PREUN
/bin/sh
if [[ "$1" = "0" ]]; then
perl -ni -e "/^HYPH\s*fr\s*FR\s*hyph_fr$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
perl -ni -e "/^HYPH\s*fr\s*BE\s*hyph_fr$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
perl -ni -e "/^HYPH\s*fr\s*CA\s*hyph_fr$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
perl -ni -e "/^HYPH\s*fr\s*LU\s*hyph_fr$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
perl -ni -e "/^HYPH\s*fr\s*MC\s*hyph_fr$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
perl -ni -e "/^HYPH\s*fr\s*CH\s*hyph_fr$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
POSTIN
/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*fr[ \t]*FR[ \t]*hyph_fr" /usr/share/dict/ooo/dictionary.lst
then
echo "HYPH fr FR hyph_fr" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*fr[ \t]*BE[ \t]*hyph_fr" /usr/share/dict/ooo/dictionary.lst
then
echo "HYPH fr BE hyph_fr" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*fr[ \t]*CA[ \t]*hyph_fr" /usr/share/dict/ooo/dictionary.lst
then
echo "HYPH fr CA hyph_fr" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*fr[ \t]*LU[ \t]*hyph_fr" /usr/share/dict/ooo/dictionary.lst
then
echo "HYPH fr LU hyph_fr" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*fr[ \t]*MC[ \t]*hyph_fr" /usr/share/dict/ooo/dictionary.lst
then
echo "HYPH fr MC hyph_fr" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*fr[ \t]*CH[ \t]*hyph_fr" /usr/share/dict/ooo/dictionary.lst
then
echo "HYPH fr CH hyph_fr" >> /usr/share/dict/ooo/dictionary.lst
fi