PREUN
/bin/sh
if [[ "$1" = "0" ]]; then
perl -ni -e "/^HYPH\s*en\s*US\s*hyph_en$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
perl -ni -e "/^HYPH\s*en\s*CA\s*hyph_en$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
perl -ni -e "/^HYPH\s*en\s*GB\s*hyph_en$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
POSTIN
/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*en[ \t]*US[ \t]*hyph_en" /usr/share/dict/ooo/dictionary.lst
then
echo "HYPH en US hyph_en" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*en[ \t]*CA[ \t]*hyph_en" /usr/share/dict/ooo/dictionary.lst
then
echo "HYPH en CA hyph_en" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*en[ \t]*GB[ \t]*hyph_en" /usr/share/dict/ooo/dictionary.lst
then
echo "HYPH en GB hyph_en" >> /usr/share/dict/ooo/dictionary.lst
fi