X-Git-Url: https://git.exim.org/exim-website.git/blobdiff_plain/9d0f50e12e32b7cf6732e7f2924f3ce290933e43..03ea187436509d50ec4feae2f203a01e6a0d1a6d:/script/gen diff --git a/script/gen b/script/gen index dfb174e..5596199 100755 --- a/script/gen +++ b/script/gen @@ -15,6 +15,7 @@ use JavaScript::Minifier::XS; use Pod::Usage; use XML::LibXML; use XML::LibXSLT; +use FindBin qw'$Bin'; my $canonical_url = 'https://www.exim.org/'; @@ -464,7 +465,7 @@ sub error_help { ## Parse arguments sub parse_arguments { - my %opt = ( spec => [], filter => [], help => 0, man => 0, web => 0, minify => 1, verbose => 0, localstatic => 0 ); + my %opt = ( spec => [], filter => [], help => 0, man => 0, web => 0, minify => 1, verbose => 0, localstatic => 0, tmpl => "$Bin/../templates" ); GetOptions( \%opt, 'help|h!', 'man!', 'web!', 'spec=s{1,}', 'filter=s{1,}', 'latest=s', 'tmpl=s', 'docroot=s', 'minify!', 'verbose!', 'localstatic!'