diff options
author | midipix <writeonce@midipix.org> | 2016-12-17 15:36:39 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-12-18 09:05:12 -0500 |
commit | c774e5ee3b57a33564e1824fe7bca3526d7e783f (patch) | |
tree | c2bfefd77d0f20e97098b0a733502268c1316ae7 /sysinfo | |
parent | e2bb7ea830ca9645accd4a121f0523e08d401499 (diff) | |
download | apimagic-c774e5ee3b57a33564e1824fe7bca3526d7e783f.tar.bz2 apimagic-c774e5ee3b57a33564e1824fe7bca3526d7e783f.tar.xz |
build system: version.sh: create output directory as needed.
Diffstat (limited to 'sysinfo')
-rwxr-xr-x | sysinfo/version.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sysinfo/version.sh b/sysinfo/version.sh index 8157765..0b948bc 100755 --- a/sysinfo/version.sh +++ b/sysinfo/version.sh @@ -55,6 +55,7 @@ gitver=`git rev-parse --verify HEAD 2>/dev/null` || gitver="unknown" macro=`echo "$prefix"_GIT_VERSION | tr '[:lower:]' '[:upper:]'` cd "$workdir" || exit 2 +mkdir -p `dirname "$output"` || exit 2 printf "#define $macro\t\"$gitver\"\n" > "$output" # all done |