couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r814245 - /couchdb/trunk/bootstrap
Date Sat, 12 Sep 2009 22:33:24 GMT
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



Mime
View raw message