adapt the extra versioning code to SVN Daniel
authorDaniel Veillard <veillard@src.gnome.org>
Wed, 3 Jan 2007 15:39:01 +0000 (15:39 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Wed, 3 Jan 2007 15:39:01 +0000 (15:39 +0000)
* configure.in: adapt the extra versioning code to SVN
Daniel

svn path=/trunk/; revision=1412

ChangeLog
configure.in

index 6ee03fd..bb2be1a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jan  3 16:46:05 CET 2007 Daniel Veillard <daniel@veillard.com>
+
+       * configure.in: adapt the extra versioning code to SVN
+
 Fri Dec 22 09:12:08 PST 2006 William Brack <wbrack@mmm.com.hk>
 
        * python/libxslt.c: applied patch supplied by Kjartan Maraas
index bf93c3a..0efadd4 100644 (file)
@@ -31,6 +31,14 @@ if test -f CVS/Entries; then
   then
       LIBXSLT_VERSION_EXTRA="-CVS$extra"
   fi
+else if test -d .svn ; then
+  extra=`svn info | grep Revision | sed 's+Revision: ++'`
+  echo extra=$extra
+  if test "$extra" != ""
+  then
+      LIBXSLT_VERSION_EXTRA="-SVN$extra"
+  fi
+fi
 fi
 
 AC_SUBST(LIBXSLT_MAJOR_VERSION)