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
9 lines
441 B
Bash
9 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
|