post-install 458 B

1234567891011121314151617181920
  1. # Determine location of Perl module
  2. sax=$(perl -MXML::SAX -le 'print $INC{"XML/SAX.pm"}' 2> /dev/null) && \
  3. sax="${sax%%.pm}/ParserDetails.ini"
  4. # Set up the ParserDetails.ini file, if needed
  5. echo "Setting init file, adding entries (if needed) ..."
  6. if ! fgrep -qs -m1 "[XML::SAX::PurePerl]" "$sax"
  7. then
  8. echo "$sax ..."
  9. printf "%s\n" \
  10. "[XML::SAX::PurePerl]" \
  11. "http://xml.org/sax/features/namespaces = 1" \
  12. "" >> $sax
  13. fi
  14. unset sax