-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";
+}