summaryrefslogtreecommitdiff
path: root/sysinfo
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:52 -0500
commit6cf13d8c6f57edf4ca2700db774f0c70f75d4026 (patch)
treecd9b608492872b3bc9ac7dd3e0875a1688a6395c /sysinfo
parent3cc1763fe98fb4bb580c0993eb0f7e79bc6f3ae8 (diff)
downloadbcparser-6cf13d8c6f57edf4ca2700db774f0c70f75d4026.tar.bz2
bcparser-6cf13d8c6f57edf4ca2700db774f0c70f75d4026.tar.xz
build system: version.sh: cvdate: fallback to $(date) as needed.
Diffstat (limited to 'sysinfo')
-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:]')