From 3abd77e894e80fc0ec1e5452add4c3e8aaedd9b3 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 25 Dec 2018 03:26:35 -0500 Subject: build system: version.sh: cvdate: fallback to $(date) as needed. --- sysinfo/version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysinfo') 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:]') -- cgit v1.2.3