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:
6795009
)
Generate output path for template files
author
Alexander Wirt
<formorer@debian.org>
Thu, 5 Jan 2012 22:12:59 +0000
(23:12 +0100)
committer
Alexander Wirt
<formorer@debian.org>
Thu, 5 Jan 2012 22:12:59 +0000
(23:12 +0100)
gen_website
patch
|
blob
|
history
diff --git
a/gen_website
b/gen_website
index
4345f19
..
398613e
100644
(file)
--- a/
gen_website
+++ b/
gen_website
@@
-34,6
+34,7
@@
foreach my $file (@files) {
|| die "Could not process file \"$file\": $!";
my ($name,$path,$suffix) = fileparse($file,qw (.tt2));
+ make_path("$out_dir/$path") unless -d "$out_dir/$path";
open (my $fh, '>', "$out_dir/$path/$name")
or die "Could not write to $file: $!";
print $fh $output;