couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beno...@apache.org
Subject [43/50] couch commit: updated refs/remotes/origin/import to 09c6556
Date Mon, 10 Feb 2014 20:05:43 GMT
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/remotes/origin/import
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