summaryrefslogtreecommitdiffhomepage
path: root/sysinfo/version.sh
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-25 01:50:06 -0500
committermidipix <writeonce@midipix.org>2018-12-25 01:50:06 -0500
commitfeb924ba4347c5d971f8e1d045bf79e159362516 (patch)
tree5af17b6ee8a00d3821494c30cf59e70616abb017 /sysinfo/version.sh
parent54449f810079b0d5274481e17a76094916b423a4 (diff)
downloadsofort-feb924ba4347c5d971f8e1d045bf79e159362516.tar.bz2
sofort-feb924ba4347c5d971f8e1d045bf79e159362516.tar.xz
build system: create the ``build'' directory via the dirs.tag make target.
Diffstat (limited to 'sysinfo/version.sh')
-rwxr-xr-xsysinfo/version.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/sysinfo/version.sh b/sysinfo/version.sh
index a9e5992..02dd5d5 100755
--- a/sysinfo/version.sh
+++ b/sysinfo/version.sh
@@ -59,11 +59,10 @@ cvdate=$(git show -s --format=%ci $gitver)
vmacro=$(printf '%s' "$prefix"'_GIT_VERSION' | tr '[:lower:]' '[:upper:]')
dmacro=$(printf '%s' "$prefix"'_GIT_DATE ' | tr '[:lower:]' '[:upper:]')
-
-# three
cd "$workdir"
-mkdir -p $(dirname "$output")
+
+# three
printf '#define %s "%s"\n#define %s "%s"\n' \
"$vmacro" "$gitver" \
"$dmacro" "$cvdate" \