X-Git-Url: https://git.exim.org/exim-website.git/blobdiff_plain/107f518dd4f377d1a6d9a870ca70a2661a895134..d54be666e66c1211c652e7c7997a9729a5bf2a1f:/script/gen.pl?ds=inline diff --git a/script/gen.pl b/script/gen.pl index c223db5..298fb14 100755 --- a/script/gen.pl +++ b/script/gen.pl @@ -411,9 +411,9 @@ sub old_docs_versions { if ( !exists $cache{old_docs_versions} ) { my @versions; foreach ( glob("$opt{docroot}/exim-html-*") ) { - push @versions, $1 if /-(\d+(?:\.\d+)?)$/ && $1 < $opt{latest} && -d $_; + push @versions, $1 if /-(\d+(?:\.\d+)?)$/ && $1 lt $opt{latest} && -d $_; } - $cache{old_docs_versions} = [ reverse sort { $a <=> $b } @versions ]; + $cache{old_docs_versions} = [ reverse sort { $a cmp $b } @versions ]; } return @{ $cache{old_docs_versions} }; } @@ -505,13 +505,12 @@ Display man page =item B<--spec> I -List of files that make up the specification documentation -docbook/XML source files. +List of files that make up the specification documentation docbook/XML source +files. =item B<--filter> I -List of files that make up the filter documentation docbook/XML -source files. +List of files that make up the filter documentation docbook/XML source files. =item B<--web> @@ -519,8 +518,8 @@ Generate the website from the template files. =item B<--latest> I -Specify the current exim version. This is used to create links to -the current documentation. +Specify the current exim version. This is used to create links to the current +documentation. This option is I @@ -532,24 +531,23 @@ This option is I =item B<--docroot> I -Specify the directory that the output should be generated into. -This is the website C directory. +Specify the directory that the output should be generated into. This is the +website C directory. This option is I =item B<--minify> -If this option is set then both the CSS and Javascript files -processed are minified using L and -L respectively. +If this option is set then both the CSS and Javascript files processed are +minified using L and L +respectively. This option is set by default - to disable it specify C<--no-minify> =item B<--localstatic> -Makes the static files (CSS, images etc), local for each version of -the documentation. This is more suitable for packaged HTML -documentation. +Makes the static files (CSS, images etc), local for each version of the +documentation. This is more suitable for packaged HTML documentation. =back @@ -571,8 +569,7 @@ Generates the exim website and HTML documentation. Mike Cardwell -Nigel Metheringham - mostly broke the framework -Mike produced. +Nigel Metheringham - mostly broke the framework Mike produced. =head1 COPYRIGHT