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/import Commit: cee3471cf033d847c9e6fe40f5aecd6e48628f38 Parents: c3116d7 Author: Paul J. Davis <paul.joseph.da...@gmail.com> Authored: Tue Feb 4 20:22:42 2014 -0600 Committer: Paul J. Davis <paul.joseph.da...@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}].