summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-17 15:36:39 -0500
committermidipix <writeonce@midipix.org>2016-12-18 09:08:47 -0500
commitc832fd08bcbada09ea1f9e51ce8b6c223933803d (patch)
tree06657d2c924621bf73723926cd115dd3485a5232
parent1f5a2325c9a8fd42fcc58894e1f53392c48eaefd (diff)
downloadptycon-c832fd08bcbada09ea1f9e51ce8b6c223933803d.tar.bz2
ptycon-c832fd08bcbada09ea1f9e51ce8b6c223933803d.tar.xz
build system: version.sh: create output directory as needed.
-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