From 079c0d20b00f7ff1b296f4b7aa4e5d3f43c2c1fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20=C3=85kerlind?= Date: Wed, 8 Jul 2015 18:57:23 +0200 Subject: [PATCH] Add git commit hash to version if building from git sources --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index aabd38f..0b67946 100644 --- a/configure.ac +++ b/configure.ac @@ -24,6 +24,8 @@ if test -f $srcdir/.gitignore ; then pcb_git_version=yes AC_MSG_RESULT([yes]) pcb_sources="GIT" + VERSION="${VERSION}-`git describe --dirty --always`" + AC_DEFINE_UNQUOTED(VERSION, "$VERSION") else AC_MSG_RESULT([no]) fi -- 2.1.4