summaryrefslogtreecommitdiff
path: root/sysinfo
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-25 01:50:06 -0500
committermidipix <writeonce@midipix.org>2018-12-25 01:53:28 -0500
commit5196e0632dba8817478597def716f0a92e11ce93 (patch)
tree1feb9d10628e3fbc3399c52384bb7965513028f2 /sysinfo
parentb2e22c852d56a5115bace51dc36b205c52e9f79f (diff)
downloadsbpython3-5196e0632dba8817478597def716f0a92e11ce93.tar.bz2
sbpython3-5196e0632dba8817478597def716f0a92e11ce93.tar.xz
build system: create the ``build'' directory via the dirs.tag make target.
Diffstat (limited to 'sysinfo')
-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" \