summaryrefslogtreecommitdiffhomepage
path: root/sysinfo/version.sh
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:53 -0500
commitcfe9dc747ae6d6ca1efab79fcfa28fdaae569dce (patch)
tree376805430f0891c6e91c04aa38362fc2fc9edb5a /sysinfo/version.sh
parent5ab1d913c29c64c376c2fb75bb905eaed68aeaa2 (diff)
downloadslibtool-cfe9dc747ae6d6ca1efab79fcfa28fdaae569dce.tar.bz2
slibtool-cfe9dc747ae6d6ca1efab79fcfa28fdaae569dce.tar.xz
build system: version.sh: create output directory as needed.
Diffstat (limited to 'sysinfo/version.sh')
-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