X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=gen_website;fp=gen_website;h=e095187c937f55ef21ab4ed891b09ac8b90d5d53;hb=cb18e7fb17bf6fedc2f311d075a111029ffe3055;hp=398613e657cc2bceb885a072d951368cbb0c230f;hpb=4d763b33b3498869a1dba0ca187e40dd13119c28;p=grml.org.git diff --git a/gen_website b/gen_website index 398613e..e095187 100755 --- a/gen_website +++ b/gen_website @@ -8,14 +8,24 @@ use File::Find::Rule; use File::Path qw(make_path); use File::Basename qw (fileparse); use File::Copy::Recursive qw(fcopy); +use File::Temp qw (tempdir); my $out_dir = "out/"; #find all files -my @files = File::Find::Rule->file() - ->in('.'); +#rule to match git directorys +my $git = File::Find::Rule->directory + ->name(".git") + ->prune + ->discard; +#matches all files +my $file_rule = File::Find::Rule->file(); + +#combine both +my @files = File::Find::Rule->or( $git, $file_rule ) + ->in('.'); #initialize template toolkit