diff options
author | midipix <writeonce@midipix.org> | 2018-12-25 03:26:35 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-25 03:27:53 -0500 |
commit | bb7c09867ede0de8162f2926ef23cb1cf4150c7e (patch) | |
tree | c798bd49ec33ba682ecaffc43a4b4458a2ad3d4e /sysinfo | |
parent | 75ca9ed30f168fedbc9b463936dc239d20f6896c (diff) | |
download | mdso-bb7c09867ede0de8162f2926ef23cb1cf4150c7e.tar.bz2 mdso-bb7c09867ede0de8162f2926ef23cb1cf4150c7e.tar.xz |
build system: version.sh: cvdate: fallback to $(date) as needed.
Diffstat (limited to 'sysinfo')
-rwxr-xr-x | sysinfo/version.sh | 2 |
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:]') |