Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
rebar.config.script was only a symlink
  • Loading branch information
uwiger committed Jan 11, 2013
1 parent d16e15c commit 301ccd2
Showing 1 changed file with 25 additions and 1 deletion.
1 change: 0 additions & 1 deletion rebar.config.script

This file was deleted.

25 changes: 25 additions & 0 deletions rebar.config.script
@@ -0,0 +1,25 @@
%% -*- erlang -*-
Script = fun(D,S,Vs) ->
Scr = filename:join(D, S),
case file:script(Scr, orddict:store('SCRIPT', Scr, Vs)) of
{ok, Res} -> Res;
{error,_} = Err ->
io:fwrite("Error evaluating script ~s~n", [S]),
Err
end
end.
CFG1 = case os:getenv("REBAR_DEPS") of
false -> CONFIG;
[] -> CONFIG;
Dir ->
lists:keystore(deps_dir, 1, CONFIG, {deps_dir, Dir})
end.
Priv = filename:join(filename:dirname(SCRIPT), "priv").
CFG2 = case os:getenv("GPROC_DIST") of
"true" ->
CFG1;
F when F=="false"; F==false ->
Script(Priv, "remove_deps.script",
[{'CONFIG', CFG1}, {'DEPS', [gen_leader]}])
end.
Script(Priv, "check_edown.script", [{'CONFIG', CFG2}]).

0 comments on commit 301ccd2

Please sign in to comment.