projects
/
grml.org.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4d763b3
)
ignore .git directorys
author
Alexander Wirt
<formorer@debian.org>
Fri, 6 Jan 2012 07:50:40 +0000
(08:50 +0100)
committer
Alexander Wirt
<formorer@debian.org>
Fri, 6 Jan 2012 07:50:40 +0000
(08:50 +0100)
gen_website
patch
|
blob
|
history
diff --git
a/gen_website
b/gen_website
index
398613e
..
e095187
100755
(executable)
--- 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::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 $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
#initialize template toolkit