void-packages/templates/perl-XML-SAX/INSTALL
Juan RP 5f4c4ef370 Added perl-XML-SAX-0.96 template.
--HG--
extra : convert_revision : 2c1f22ac7ada8ca0c31292203aa89e0fb96b1673
2009-04-21 19:21:38 +02:00

13 lines
284 B
Text

#
# This script registers the SAX parser into the registry.
#
case "${ACTION}" in
pre)
;;
post)
env LC_ALL=C perl -MXML::SAX -e \
"XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" \
2>&1 >/dev/null
[ $? -eq 0 ] && echo "Added parser to XML::SAX registry."
;;
esac