[exim-cvs] Find default templates/ folder

Inizio della pagina
Delete this message
Reply to this message
Autore: Exim Git Commits Mailing List
Data:  
To: exim-cvs
Oggetto: [exim-cvs] Find default templates/ folder
Gitweb: https://git.exim.org/exim-website.git/commitdiff/03ea187436509d50ec4feae2f203a01e6a0d1a6d
Commit:     03ea187436509d50ec4feae2f203a01e6a0d1a6d
Parent:     9d0f50e12e32b7cf6732e7f2924f3ce290933e43
Author:     Heiko Schlittermann (HS12-RIPE) <hs@???>
AuthorDate: Tue Dec 4 22:36:24 2018 +0100
Committer:  Heiko Schlittermann (HS12-RIPE) <hs@???>
CommitDate: Tue Dec 4 22:36:24 2018 +0100


    Find default templates/ folder
---
 script/gen | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


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!'