PKGBUILDs/community/perl-xml-sax/perl-xml-sax.install
2009-10-09 21:15:33 -05:00

15 lines
407 B
Text

post_install() {
if [ ! -r /usr/share/perl5/vendor_perl/XML/SAX/ParserDetails.ini ]; then
perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" &>/dev/null
fi
}
post_upgrade() {
if [ ! -r /usr/share/perl5/vendor_perl/XML/SAX/ParserDetails.ini ]; then
perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" &>/dev/null
fi
}
op=$1
shift
$op $*