From 51357e6c021cf74cb97be5638e9ddab429d0b186 Mon Sep 17 00:00:00 2001 From: Alexander Wirt Date: Thu, 5 Jan 2012 23:12:59 +0100 Subject: [PATCH] Generate output path for template files --- gen_website | 1 + 1 file changed, 1 insertion(+) diff --git a/gen_website b/gen_website index 4345f19..398613e 100644 --- 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; -- 2.1.4