summaryrefslogtreecommitdiff
path: root/test/common.sh.in
diff options
context:
space:
mode:
authorMartijn van Beurden <mvanb1@gmail.com>2022-04-20 21:47:07 +0200
committerGitHub <noreply@github.com>2022-04-20 21:47:07 +0200
commitf579b163fe7ccdb0f713001d4253c5d68a3b8280 (patch)
treea085ae1b5080f292d6b469d1080d4546b348978e /test/common.sh.in
parent1ca7b38f3c174a95e391b4251eebfc98ca66fd17 (diff)
downloadflac-f579b163fe7ccdb0f713001d4253c5d68a3b8280.tar.gz
Add git commit tag, hash and date to vendor string when available
In some circles (Hydrogenaud.io for example) people share binaries compiled from git, i.e. inbetween official releases. Files created with these binaries cannot be discerned from others. To improve troubleshooting, compiles from a git repository are marked with the commit hash and date when configured with autotools or CMake
Diffstat (limited to 'test/common.sh.in')
-rw-r--r--test/common.sh.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/common.sh.in b/test/common.sh.in
index 3184cc30..335f8409 100644
--- a/test/common.sh.in
+++ b/test/common.sh.in
@@ -52,6 +52,7 @@ EXE=@EXEEXT@
# and build products in the $top_builddir tree.
top_srcdir=@top_srcdir@
top_builddir=@top_builddir@
+git_commit_version_hash=@GIT_COMMIT_VERSION_HASH@
# Set `is_win` variable which is used in other scripts that source this one.
if test $(env | grep -ic '^comspec=') != 0 ; then