mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
357917bd8e
Make post-install script actually working Remove post-install target from the port and the "normal" make install in sources already register the parsers
10 lines
441 B
Bash
10 lines
441 B
Bash
#!/bin/sh
|
|
|
|
if [ "X$2" = "XPOST-INSTALL" ]; then
|
|
perl -MXML::SAX -e "XML::SAX->add_parser('XML::LibXML::SAX'.\$_)->save_parsers()"
|
|
perl -MXML::SAX -e "XML::SAX->add_parser('XML::LibXML::SAX::Parser'.\$_)->save_parsers()"
|
|
elif [ "X$2" = "XDEINSTALL" ]; then
|
|
perl -MXML::SAX -e "XML::SAX->remove_parser('XML::LibXML::SAX'.\$_)->save_parsers()"
|
|
perl -MXML::SAX -e "XML::SAX->remove_parser('XML::LibXML::SAX::Parser'.\$_)->save_parsers()"
|
|
fi
|