couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [4/6] couchdb commit: updated refs/heads/1843-feature-bigcouch-multi-repo to 3069c01
Date Wed, 05 Feb 2014 14:35:04 GMT
Make sure that we don't destroy the current CONFIG

Its possible to also provide a rebar.config which rebar.config.script is
responsible for mutating. This just makes sure we update the provided
CONFIG values rather than possibly dropping unknown configuration
values.


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

Branch: refs/heads/1843-feature-bigcouch-multi-repo
Commit: 0052a9b26806d155c56ba539c118fb6cffd61b03
Parents: 52689b7
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Tue Feb 4 21:02:36 2014 -0600
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Wed Feb 5 08:34:52 2014 -0600

----------------------------------------------------------------------
 rebar.config.script | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/0052a9b2/rebar.config.script
----------------------------------------------------------------------
diff --git a/rebar.config.script b/rebar.config.script
index 0efa6fa..b541d02 100644
--- a/rebar.config.script
+++ b/rebar.config.script
@@ -37,11 +37,15 @@ MakeDep = fun({AppName, RepoName, Version}) ->
     {AppName, ".*", {git, Url, Version}}
 end,
 
-[
+AddConfig = [
     {deps_dir, "src"},
     {deps, lists:map(MakeDep, DepDescs)},
     {sub_dirs, ["rel"]},
     {lib_dirs, ["src/"]},
     {erl_opts, [debug_info]},
     {post_hooks, [{compile, "escript support/build_js.escript"}]}
-].
+],
+
+C = lists:foldl(fun({K, V}, CfgAcc) ->
+    lists:keystore(K, 1, CfgAcc, {K, V})
+end, CONFIG, AddConfig).


Mime
View raw message