You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by Joe Schaefer <jo...@yahoo.com> on 2009/08/11 02:54:05 UTC

PATCH print_version.sh

Without the . I get a usage error with svnversion.  Here's a patch
to fix:

Index: print_version.sh
===================================================================
--- print_version.sh    (revision 802624)
+++ print_version.sh    (working copy)
@@ -27,7 +27,7 @@
 VERSION=`sed -ne 's/^AC_INIT(\[thrift\], \[\(.*\)\])$/\1/p' configure.ac`
 
 if test -d .svn ; then
-  REVISION="r`svnversion`"
+  REVISION="r`svnversion .`"
 elif test -d .git ; then
   SHA1=`git rev-list --max-count=1 --grep='^git-svn-id:' HEAD`
   REVISION=`git cat-file commit $SHA1 | sed -ne 's/^git-svn-id:[^@]*@\([0-9][0-9]*\).*/r\1/p'`