mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
6 lines
228 B
Plaintext
6 lines
228 B
Plaintext
|
#!/usr/bin/perl
|
||
|
exit unless $ARGV[1]=~ /^(DE|POST\-)INSTALL$/;
|
||
|
$action=(($1 eq 'DE')?'remove':'add').'_parser';
|
||
|
eval "use XML::SAX;"; exit(-1) if $@;
|
||
|
XML::SAX->$action('XML::LibXML::SAX'.$_)->save_parsers() for('::Parser', '');
|