You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2009/09/13 00:33:24 UTC

svn commit: r814245 - /couchdb/trunk/bootstrap

Author: jan
Date: Sat Sep 12 22:33:23 2009
New Revision: 814245

URL: http://svn.apache.org/viewvc?rev=814245&view=rev
Log:
use first 8 bytes of the commit hash as the release info when building from git

Modified:
    couchdb/trunk/bootstrap

Modified: couchdb/trunk/bootstrap
URL: http://svn.apache.org/viewvc/couchdb/trunk/bootstrap?rev=814245&r1=814244&r2=814245&view=diff
==============================================================================
--- couchdb/trunk/bootstrap (original)
+++ couchdb/trunk/bootstrap Sat Sep 12 22:33:23 2009
@@ -32,7 +32,12 @@
 mkdir -p build-aux
 
 if test -z "$REVISION"; then
-    REVISION=`\`which svn\` info . 2> /dev/null | awk "/Revision:/{print \\$2}"`
+    if test -d .git; then
+        REVISION=`git log | head -1 | awk '{print $2}' | cut -b 1-8`-git
+    else
+        # default to svn
+        REVISION=`\`which svn\` info . 2> /dev/null | awk "/Revision:/{print \\$2}"`
+    fi
 fi
 if test -z "`get LOCAL_VERSION_STAGE`" -o -z "$REVISION"; then
     sed "s/%release%//" < acinclude.m4.in > acinclude.m4