#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
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));