git://git.exim.org
/
exim-website.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: broken index.xsl
[exim-website.git]
/
script
/
gen
diff --git
a/script/gen
b/script/gen
index 5015bce514e57e1542ced87816dd85fb21c699da..91af773bccc8b2c1b855284e277c9fa35a258b3a 100755
(executable)
--- a/
script/gen
+++ b/
script/gen
@@
-131,7
+131,7
@@
sub do_doc {
my ( $type, $xml_path ) = @_;
## Read and validate the XML file
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 {
## Get the version number
my $version = do {
@@
-141,6
+141,7
@@
sub do_doc {
(?<version>
\d+ # major
(?:\.\d+(?:\.\d+)?)? # (minor(.patch))
(?<version>
\d+ # major
(?:\.\d+(?:\.\d+)?)? # (minor(.patch))
+ (?:\.\d+(?:\.\d+(?:\.\d+)?)?)? # (minor(.patch.(fixes)))
)
(?:-RC\d+)?$/x; # -RCX
$+{version};
)
(?:-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
$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);
## Generate a stylesheet from the ".xsl" XML.
my $stylesheet = XML::LibXSLT->new()->parse_stylesheet($xsl);