summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-25 03:26:35 -0500
committermidipix <writeonce@midipix.org>2018-12-25 03:27:54 -0500
commit8e7ed33828cbe7c457633fad6edfa501d2b98d3b (patch)
tree13b04c7c55850236f4c3951c67cfc2fd2ce6f4c0
parent7687f4f16111a8b53098ef4beb0e608835cc2006 (diff)
downloadsbpython3-8e7ed33828cbe7c457633fad6edfa501d2b98d3b.tar.bz2
sbpython3-8e7ed33828cbe7c457633fad6edfa501d2b98d3b.tar.xz
build system: version.sh: cvdate: fallback to $(date) as needed.
-rwxr-xr-xsysinfo/version.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysinfo/version.sh b/sysinfo/version.sh
index 02dd5d5..6cbdc12 100755
--- a/sysinfo/version.sh
+++ b/sysinfo/version.sh
@@ -54,7 +54,7 @@ fi
cd "$srcdir"
gitver=$(git rev-parse --verify HEAD 2>/dev/null) || gitver="unknown"
-cvdate=$(git show -s --format=%ci $gitver)
+cvdate=$(git show -s --format=%ci $gitver) || cvdate=$(date)
vmacro=$(printf '%s' "$prefix"'_GIT_VERSION' | tr '[:lower:]' '[:upper:]')
dmacro=$(printf '%s' "$prefix"'_GIT_DATE ' | tr '[:lower:]' '[:upper:]')