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:53 -0500
commit3abd77e894e80fc0ec1e5452add4c3e8aaedd9b3 (patch)
treefc450e88e871478690ceb71822babeaa4c685db0
parente3cab3453e89d6d0d6a954c21b9370ae671d0dd2 (diff)
downloadperk-3abd77e894e80fc0ec1e5452add4c3e8aaedd9b3.tar.bz2
perk-3abd77e894e80fc0ec1e5452add4c3e8aaedd9b3.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:]')