diff options
author | midipix <writeonce@midipix.org> | 2016-12-17 15:36:39 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-12-18 09:07:30 -0500 |
commit | 717614bc52782888e9138100f9307053a39a79e9 (patch) | |
tree | 046f8e99f1626e9d62ebf7a6b2eeaa69d0fd9f13 /sysinfo | |
parent | daf95d3a93bd4ef1f8d8fb6e53726cf0571a3ac9 (diff) | |
download | mdso-717614bc52782888e9138100f9307053a39a79e9.tar.bz2 mdso-717614bc52782888e9138100f9307053a39a79e9.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 |