diff options
author | Michael Schwarz <michi.schwarz@gmail.com> | 2014-12-04 10:18:30 +0100 |
---|---|---|
committer | Michael Schwarz <michi.schwarz@gmail.com> | 2014-12-04 10:18:30 +0100 |
commit | 2c62798f699bc934d428458e3839df6f72095935 (patch) | |
tree | bf5c341455830a88c75618784f69741e81859e78 | |
parent | b15e1c4a98abe6ed13be76d583c8ce35067fbddd (diff) | |
download | pogojig-2c62798f699bc934d428458e3839df6f72095935.tar.gz pogojig-2c62798f699bc934d428458e3839df6f72095935.tar.bz2 pogojig-2c62798f699bc934d428458e3839df6f72095935.zip |
Create necessary directories before generating files.
-rwxr-xr-x | generate_sources.sh | 1 |
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 } |