summaryrefslogtreecommitdiffhomepage
path: root/sysinfo
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-17 15:36:39 -0500
committermidipix <writeonce@midipix.org>2016-12-18 09:07:30 -0500
commit717614bc52782888e9138100f9307053a39a79e9 (patch)
tree046f8e99f1626e9d62ebf7a6b2eeaa69d0fd9f13 /sysinfo
parentdaf95d3a93bd4ef1f8d8fb6e53726cf0571a3ac9 (diff)
downloadmdso-717614bc52782888e9138100f9307053a39a79e9.tar.bz2
mdso-717614bc52782888e9138100f9307053a39a79e9.tar.xz
build system: version.sh: create output directory as needed.
Diffstat (limited to 'sysinfo')
-rwxr-xr-xsysinfo/version.sh1
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