12345678910111213141516171819202122 |
- # Determine location of Perl module
- sax=$(perl -MXML::SAX -le 'print $INC{"XML/SAX.pm"}' 2> /dev/null) && \
- sax="${sax%%.pm}/ParserDetails.ini"
- # Set up the ParserDetails.ini file, if needed
- echo "Setting init file, adding entries (if needed) ..."
- if ! fgrep -qs -m1 "[XML::SAX::Expat]" "$sax"
- then
- echo "$sax ..."
- printf "%s\n" \
- "[XML::SAX::Expat]" \
- "http://xml.org/sax/features/external-general-entities = 1" \
- "http://xml.org/sax/features/external-parameter-entities = 1" \
- "http://xml.org/sax/features/namespaces = 1" \
- "" >> $sax
- fi
- unset sax
|