From 2c62798f699bc934d428458e3839df6f72095935 Mon Sep 17 00:00:00 2001 From: Michael Schwarz Date: Thu, 4 Dec 2014 10:18:30 +0100 Subject: Create necessary directories before generating files. --- generate_sources.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/generate_sources.sh b/generate_sources.sh index 67fa258..8ac6afa 100755 --- a/generate_sources.sh +++ b/generate_sources.sh @@ -13,6 +13,7 @@ function generate_file() { if ! [ "$current_file_name" ]; then echo "$file_name" elif [ "$current_file_name" == "$file_name" ]; then + mkdir -p "$(dirname "$file_name")" "${generate_command[@]}" > "$file_name" fi } -- cgit