From 423d52e29fc8a8e2a6d4b51d5058fe2ad121cbdf Mon Sep 17 00:00:00 2001 From: "Heiko Schlittermann (HS12-RIPE)" Date: Wed, 6 Apr 2016 23:09:08 +0200 Subject: [PATCH] Create the exim-pdf-current link --- script/gen.pl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/script/gen.pl b/script/gen.pl index 882e385..3934ee8 100755 --- a/script/gen.pl +++ b/script/gen.pl @@ -33,10 +33,12 @@ do_web() if ( $opt{web} ); do_static() if ( $opt{web} or !$opt{localstatic} ); # need this for all other pages generated ## Add the exim-html-current symlink -print "Symlinking exim-html-current to exim-html-$opt{latest}\n" if ( $opt{verbose} ); -unlink("$opt{docroot}/exim-html-current") if ( -l "$opt{docroot}/exim-html-current" ); -symlink( "exim-html-$opt{latest}", "$opt{docroot}/exim-html-current" ) - || warn "symlink to $opt{docroot}/exim-html-current failed"; +foreach my $type (qw(html pdf)) { + print "Symlinking exim-$type-current to exim-$type-$opt{latest}\n" if ( $opt{verbose} ); + unlink("$opt{docroot}/exim-$type-current"); + symlink( "exim-$type-$opt{latest}", "$opt{docroot}/exim-$type-current" ) + || warn "symlink to $opt{docroot}/exim-$type-current failed"; +} # ------------------------------------------------------------------ ## Generate the website files @@ -520,7 +522,7 @@ gen.pl [options] --tmpl PATH Required. Path to the templates directory --docroot PATH Required. Path to the website document root --[no-]minify [Don't] minify CSS and Javascript - --localstatic Makes the static files local to each doc ver + --localstatic Makes the static files local to each doc ver =head1 OPTIONS -- 2.30.2