X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=gen_website;h=ae21d86d6cde0bf436d49135306982ac443ae8cf;hb=a00503d6a791889452982b82acb7eef2a5d66cbc;hp=f0cab8d7f13b879604af29619d95e29568ae269d;hpb=77aa8b219258828a0614ee9b6a67403259202a0a;p=grml.org.git diff --git a/gen_website b/gen_website index f0cab8d..ae21d86 100755 --- a/gen_website +++ b/gen_website @@ -66,8 +66,11 @@ my $git = File::Find::Rule->directory #matches all files my $file_rule = File::Find::Rule->file(); -#combine both -my @files = File::Find::Rule->or( $git, $file_rule ) +#match symlinks +my $symlink_rule = File::Find::Rule->symlink(); + +#combine all rules +my @files = File::Find::Rule->or( $git, $file_rule, $symlink_rule ) ->in('.'); #create a tempdir @@ -84,7 +87,7 @@ foreach my $file (@files) { next if $file =~ /$0$/; if ($file =~ /\.tt2$/) { my $output; - $template->process($file, undef, \$output) + $template->process($file, { mirrors => $mirrors }, \$output) || die "Could not process file \"$file\": $!"; my ($name,$path,$suffix) = fileparse($file,qw (.tt2));