Permalink
Browse files

Merge pull request #120 from uwiger/uw-shell-config

start gproc in rebar3 shell; support GPROC_DIST
  • Loading branch information...
2 parents 6d066d8 + 4dd2718 commit 01c8fbfdd5e4701e8e4b57b0c8279872f9574b0b @uwiger committed on GitHub Dec 1, 2016
Showing with 18 additions and 3 deletions.
  1. +6 −0 dist_shell.config
  2. +1 −0 rebar.config
  3. +11 −3 rebar.config.script
View
@@ -0,0 +1,6 @@
+%% -*- erlang-mode -*-
+[
+ {gproc, [
+ {gproc_dist, all}
+ ]}
+].
View
@@ -16,3 +16,4 @@
{top_level_readme,
{"./README.md",
"http://github.com/uwiger/gproc"}}]}.
+{shell, [{apps, [gproc]}]}.
View
@@ -17,9 +17,17 @@ CFG1 = case os:getenv("REBAR_DEPS") of
Priv = filename:join(filename:dirname(SCRIPT), "priv").
CFG2 = case os:getenv("GPROC_DIST") of
"true" ->
- CFG1;
+ Sh = proplists:get_value(shell, CFG1, []),
+ case lists:keymember(config, 1, Sh) of
+ true ->
+ CFG1;
+ false ->
+ lists:keystore(
+ shell, 1, CFG1,
+ {shell, [{config, "dist_shell.config"}|Sh]})
+ end;
F when F=="false"; F==false ->
- Script(Priv, "remove_deps.script",
- [{'CONFIG', CFG1}, {'DEPS', [gen_leader]}])
+ Script(Priv, "remove_deps.script",
+ [{'CONFIG', CFG1}, {'DEPS', [gen_leader]}])
end.
Script(Priv, "check_edown.script", [{'CONFIG', CFG2}]).

0 comments on commit 01c8fbf

Please sign in to comment.