[libxml2] * configure.in: adapt the extra version detection code to git



commit 97c7be6a94bbd9de2ee97a8d8de5b0f90369bb07
Author: veillard <veillard redhat com>
Date:   Tue May 12 08:43:54 2009 +0200

    * configure.in: adapt the extra version detection code to git
    Daniel
---
 ChangeLog    |    4 ++++
 configure.in |    8 ++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 62ccabb..b87ada4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue May 12 08:42:52 CEST 2009 Daniel Veillard <daniel veillard com>
+
+	* configure.in: adapt the extra version detection code to git
+
 Wed Apr 29 16:09:38 CEST 2009 Rob Richards <rrichards cdatazone org>
 
 	* parser.c: do not set error code in xmlNsWarn
diff --git a/configure.in b/configure.in
index 1ac2316..9d64dfd 100644
--- a/configure.in
+++ b/configure.in
@@ -26,6 +26,14 @@ else if test -d .svn ; then
   then
       LIBXML_VERSION_EXTRA="-SVN$extra"
   fi
+else if test -d .git ; then
+  extra=`git describe | sed 's+LIBXML[[0-9.]]*-++'`
+  echo extra=$extra
+  if test "$extra" != ""
+  then
+      LIBXML_VERSION_EXTRA="-GIT$extra"
+  fi
+fi
 fi
 fi
 AC_SUBST(LIBXML_MAJOR_VERSION)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]