summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgenerate_sources.sh1
1 files changed, 1 insertions, 0 deletions
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
}