>From 35c40e9abef416c8f11d3d33548c7719381733e1 Mon Sep 17 00:00:00 2001 From: Assaf Gordon Date: Fri, 11 Sep 2015 20:42:31 -0400 Subject: [PATCH] configure: add git version to version string (if exists) --- configure | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure b/configure index 6a796f3..d91e3e1 100755 --- a/configure +++ b/configure @@ -558,6 +558,9 @@ if test "$enable_assert" = "yes" ; then fi version=`head $source_path/VERSION` +gitver=$(test -d "$source_path/.git" \ + && cd "$source_path" && git describe --dirty --abbrev=6) +test "$gitver" && version="$version-$gitver" echo "VERSION=$version" >>config.mak echo "#define TCC_VERSION \"$version\"" >> $TMPH echo "@set VERSION $version" > config.texi -- 1.9.1