2009-04-21 19:21:38 +02:00
|
|
|
#
|
|
|
|
# This script registers the SAX parser into the registry.
|
|
|
|
#
|
|
|
|
case "${ACTION}" in
|
|
|
|
pre)
|
|
|
|
;;
|
|
|
|
post)
|
2011-07-01 21:44:35 +02:00
|
|
|
LC_ALL=C perl -MXML::SAX -e \
|
2009-04-21 19:21:38 +02:00
|
|
|
"XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" \
|
|
|
|
2>&1 >/dev/null
|
|
|
|
[ $? -eq 0 ] && echo "Added parser to XML::SAX registry."
|
|
|
|
;;
|
|
|
|
esac
|