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:07:22 -0500
commit7a81e1af5bb48701ca6d34b1c6425265a45a6bf8 (patch)
tree01b5896eba8fe26718af4673fa646225fb287ec2
parent45b07e023ec0c2d1389f2a22403a43a57713a6b6 (diff)
downloaddalist-7a81e1af5bb48701ca6d34b1c6425265a45a6bf8.tar.bz2
dalist-7a81e1af5bb48701ca6d34b1c6425265a45a6bf8.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