Allow symlinks in webdir
authorAlexander Wirt <alexander.wirt@credativ.de>
Wed, 16 May 2012 11:27:35 +0000 (13:27 +0200)
committerAlexander Wirt <alexander.wirt@credativ.de>
Wed, 16 May 2012 11:27:35 +0000 (13:27 +0200)
gen_website

index 6204a12..ae21d86 100755 (executable)
@@ -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