added some code to include the CVS ChangeLog version in the
* configure.in globals.c include/libxml/xmlversion.h.in
include/libxml/xmlwin32version.h.in: added some code to
include the CVS ChangeLog version in the xmlParserVersion
string (printed by xmllint with --version)
diff --git a/ChangeLog b/ChangeLog
index b2b9029..4dbae76 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Wed Aug 18 14:04:31 PDT 2004 William Brack <wbrack@mmm.com.hk>
+
+ * configure.in globals.c include/libxml/xmlversion.h.in
+ include/libxml/xmlwin32version.h.in: added some code to
+ include the CVS ChangeLog version in the xmlParserVersion
+ string (printed by xmllint with --version)
+
Wed Aug 18 11:14:06 CEST 2004 Daniel Veillard <daniel@veillard.com>
* xmlschemas.c include/libxml/xmlschemas.h python/generator.py
diff --git a/configure.in b/configure.in
index d7e9e66..f30171b 100644
--- a/configure.in
+++ b/configure.in
@@ -12,12 +12,16 @@
LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION`
+if test -f CVS/Entries; then
+ LIBXML_VERSION_EXTRA=-CVS`grep ChangeLog CVS/Entries | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%`
+fi
AC_SUBST(LIBXML_MAJOR_VERSION)
AC_SUBST(LIBXML_MINOR_VERSION)
AC_SUBST(LIBXML_MICRO_VERSION)
AC_SUBST(LIBXML_VERSION)
AC_SUBST(LIBXML_VERSION_INFO)
AC_SUBST(LIBXML_VERSION_NUMBER)
+AC_SUBST(LIBXML_VERSION_EXTRA)
VERSION=${LIBXML_VERSION}
diff --git a/globals.c b/globals.c
index 2105157..feb19cc 100644
--- a/globals.c
+++ b/globals.c
@@ -176,7 +176,7 @@
*
* Constant string describing the internal version of the library
*/
-const char *xmlParserVersion = LIBXML_VERSION_STRING;
+const char *xmlParserVersion = LIBXML_VERSION_STRING LIBXML_VERSION_EXTRA;
/**
* xmlBufferAllocScheme:
diff --git a/include/libxml/xmlversion.h.in b/include/libxml/xmlversion.h.in
index 6939937..8f261b2 100644
--- a/include/libxml/xmlversion.h.in
+++ b/include/libxml/xmlversion.h.in
@@ -46,6 +46,13 @@
#define LIBXML_VERSION_STRING "@LIBXML_VERSION_NUMBER@"
/**
+ * LIBXML_VERSION_EXTRA:
+ *
+ * extra version information, used to show a CVS compilation
+ */
+#define LIBXML_VERSION_EXTRA "@LIBXML_VERSION_EXTRA@"
+
+/**
* LIBXML_TEST_VERSION:
*
* Macro to check that the libxml version in use is compatible with
diff --git a/include/libxml/xmlwin32version.h.in b/include/libxml/xmlwin32version.h.in
index 7554966..da76f74 100644
--- a/include/libxml/xmlwin32version.h.in
+++ b/include/libxml/xmlwin32version.h.in
@@ -45,6 +45,13 @@
#define LIBXML_VERSION_STRING "@LIBXML_VERSION_NUMBER@"
/**
+ * LIBXML_VERSION_EXTRA:
+ *
+ * extra version information, used to show a CVS compilation
+ */
+#define LIBXML_VERSION_EXTRA "@LIBXML_VERSION_EXTRA@"
+
+/**
* LIBXML_TEST_VERSION:
*
* Macro to check that the libxml version in use is compatible with