[Sheepdog] [PATCH v2 1/2] Modified m4 macros in configure.ac

chenbaozi at gmail.com chenbaozi at gmail.com
Wed Oct 26 09:24:29 CEST 2011


From: CHEN Baozi <chenbaozi.pt at taobao.com>

Support getting version from git repo in redhat.

Signed-off-by: CHEN Baozi <chenbaozi.pt at taobao.com>
---
 configure.ac |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index dea219b..ca33fab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,7 +21,8 @@ AC_PREREQ([2.61])
 m4_define([sheepdog_version], [0.2.4])
 
 m4_define([git_version],
-	m4_esyscmd_s([git describe --tags --dirty 2> /dev/null | sed 's/^v//']))
+	m4_esyscmd([git describe --tags --dirty 2> /dev/null | sed 's/^v//' \
+| tr '-' '_' | tr -d '\n']))
 
 AC_INIT([sheepdog], m4_default(git_version, sheepdog_version),
 	[sheepdog at lists.wpkg.org])
-- 
1.7.6.4




More information about the sheepdog mailing list