summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schwarz <michi.schwarz@gmail.com>2014-12-04 10:18:30 +0100
committerMichael Schwarz <michi.schwarz@gmail.com>2014-12-04 10:18:30 +0100
commit2c62798f699bc934d428458e3839df6f72095935 (patch)
treebf5c341455830a88c75618784f69741e81859e78
parentb15e1c4a98abe6ed13be76d583c8ce35067fbddd (diff)
downloadpogojig-2c62798f699bc934d428458e3839df6f72095935.tar.gz
pogojig-2c62798f699bc934d428458e3839df6f72095935.tar.bz2
pogojig-2c62798f699bc934d428458e3839df6f72095935.zip
Create necessary directories before generating files.
-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
}