couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject couch commit: updated refs/heads/import to e44bfa2
Date Wed, 05 Feb 2014 02:23:28 GMT
Updated Branches:
  refs/heads/import c3116d79c -> e44bfa227


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/e44bfa22
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/e44bfa22
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/e44bfa22

Branch: refs/heads/import
Commit: e44bfa2273b6ff0260087d3085e32ae96a9c66df
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 20:22:42 2014 -0600

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


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/e44bfa22/rebar.config.script
----------------------------------------------------------------------
diff --git a/rebar.config.script b/rebar.config.script
index 9053485..dd573fe 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:keyreplace(K, 1, CfgAcc, {K, V})
+end, CONFIG, AddConfig).
 
-[{port_specs, PortSpecs}].


Mime
View raw message