You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/10/07 16:52:27 UTC

[2/2] couchdb commit: updated refs/heads/master to 5347973

Fix rebar build when sources are provided while binary is not


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/53479733
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/53479733
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/53479733

Branch: refs/heads/master
Commit: 534797334209fb63eea62b946369cfa2a59e8bdf
Parents: 603b9fc
Author: Alexander Shorin <kx...@apache.org>
Authored: Wed Oct 7 17:50:48 2015 +0300
Committer: Alexander Shorin <kx...@apache.org>
Committed: Wed Oct 7 17:50:48 2015 +0300

----------------------------------------------------------------------
 configure | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/53479733/configure
----------------------------------------------------------------------
diff --git a/configure b/configure
index 9e6d952..2e246b0 100755
--- a/configure
+++ b/configure
@@ -651,7 +651,9 @@ EOF
 
 install_local_rebar() {
     if [ ! -x "${rootdir}/bin/rebar" ]; then
-        git clone --depth 1 --branch 2.6.0 https://git-wip-us.apache.org/repos/asf/couchdb-rebar.git ${rootdir}/src/rebar
+        if [ ! -d "${rootdir}/src/rebar" ]; then
+            git clone --depth 1 --branch 2.6.0 https://git-wip-us.apache.org/repos/asf/couchdb-rebar.git ${rootdir}/src/rebar
+        fi
         make -C ${rootdir}/src/rebar
         mv ${rootdir}/src/rebar/rebar ${rootdir}/bin/rebar
         make -C ${rootdir}/src/rebar clean