diff options
author | midipix <writeonce@midipix.org> | 2018-12-25 05:37:11 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-25 05:39:38 -0500 |
commit | 03ba48a49a54777b429af64d97f7da7553d5bd5e (patch) | |
tree | c80ce2fb405e3911a0a933771217f460e6e3544b /sysinfo | |
parent | 755910893791ee040c7d641326b0a20b3f5e9fbd (diff) | |
download | sbpython2-03ba48a49a54777b429af64d97f7da7553d5bd5e.tar.bz2 sbpython2-03ba48a49a54777b429af64d97f7da7553d5bd5e.tar.xz |
build system: version.sh: silence git errors with a non-git source tree.
Diffstat (limited to 'sysinfo')
-rwxr-xr-x | sysinfo/version.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysinfo/version.sh b/sysinfo/version.sh index 6cbdc12..f510a32 100755 --- a/sysinfo/version.sh +++ b/sysinfo/version.sh @@ -53,8 +53,8 @@ fi cd "$srcdir" -gitver=$(git rev-parse --verify HEAD 2>/dev/null) || gitver="unknown" -cvdate=$(git show -s --format=%ci $gitver) || cvdate=$(date) +gitver=$(git rev-parse --verify HEAD 2>/dev/null) || gitver="unknown" +cvdate=$(git show -s --format=%ci $gitver 2>/dev/null) || cvdate=$(date) vmacro=$(printf '%s' "$prefix"'_GIT_VERSION' | tr '[:lower:]' '[:upper:]') dmacro=$(printf '%s' "$prefix"'_GIT_DATE ' | tr '[:lower:]' '[:upper:]') |