couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [1/9] couch commit: updated refs/heads/1843-feature-bigcouch to 20a53ef
Date Wed, 12 Feb 2014 19:45:26 GMT
Updated Branches:
  refs/heads/1843-feature-bigcouch c3116d79c -> 20a53ef58


Make sure that we don't destroy the current CONFIG

Found this by looking at other example rebar.config.script examples. We
want to be sure we aren't accidentally removing configuration values
from the global CONIFG value.


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

Branch: refs/heads/1843-feature-bigcouch
Commit: cee3471cf033d847c9e6fe40f5aecd6e48628f38
Parents: c3116d7
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Tue Feb 4 20:22:42 2014 -0600
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Tue Feb 4 21:05:33 2014 -0600

----------------------------------------------------------------------
 rebar.config.script | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/cee3471c/rebar.config.script
----------------------------------------------------------------------
diff --git a/rebar.config.script b/rebar.config.script
index 9053485..8e7c8e6 100644
--- a/rebar.config.script
+++ b/rebar.config.script
@@ -66,5 +66,9 @@ PortSpecs = case os:type() of
         BaseSpecs
 end,
 
+AddConfig = [{port_specs, PortSpecs}].
+
+lists:foldl(fun({K, V}, CfgAcc) ->
+    lists:keystore(K, 1, CfgAcc, {K, V})
+end, CONFIG, AddConfig).
 
-[{port_specs, PortSpecs}].


Mime
View raw message