X-Git-Url: https://git.exim.org/exim-website.git/blobdiff_plain/d55fd5ac70bd2a285a4294ca22d616eeb3f5eada..3c561362f82f71e1982f7d5ca13e24ef3768a334:/script/gen diff --git a/script/gen b/script/gen index b794df6..91af773 100755 --- a/script/gen +++ b/script/gen @@ -131,7 +131,7 @@ sub do_doc { my ( $type, $xml_path ) = @_; ## Read and validate the XML file - my $xml = XML::LibXML->new()->parse_file($xml_path) or die $!; + my $xml = XML::LibXML->new(expand_entities => 1)->parse_file($xml_path) or die $!; ## Get the version number my $version = do { @@ -141,6 +141,7 @@ sub do_doc { (? \d+ # major (?:\.\d+(?:\.\d+)?)? # (minor(.patch)) + (?:\.\d+(?:\.\d+(?:\.\d+)?)?)? # (minor(.patch.(fixes))) ) (?:-RC\d+)?$/x; # -RCX $+{version}; @@ -418,7 +419,7 @@ sub transform { $xml->documentElement()->appendTextChild( 'old_versions', $_ ) foreach old_docs_versions(); ## Parse the ".xsl" file as XML - my $xsl = XML::LibXML->new()->parse_file($xsl_path) or die $!; + my $xsl = XML::LibXML->new(expand_entities => 1)->parse_file($xsl_path) or die $!; ## Generate a stylesheet from the ".xsl" XML. my $stylesheet = XML::LibXSLT->new()->parse_stylesheet($xsl); @@ -516,11 +517,11 @@ __END__ =head1 NAME -gen.pl - Generate exim html documentation and website +gen - Generate exim html documentation and website =head1 SYNOPSIS -gen.pl [options] +gen [options] Options: --help display this help and exits @@ -600,7 +601,7 @@ Generates the exim website and HTML documentation. =head1 EXAMPLE - script/gen.pl \ + script/gen \ --web \ --spec docbook/*/spec.xml \ --filter docbook/*/filter.xml \