Fix indentation errors

This commit is contained in:
Tuncer Ayaz 2011-05-21 16:46:55 +02:00
parent b885b4dbfb
commit 39f8b344bc

View file

@ -116,13 +116,14 @@ compile(Config, AppFile) ->
%% and list of new binaries
lists:foreach(
fun({SoName,Bins}) ->
AllBins = [sets:from_list(Bins), sets:from_list(NewBins)],
Intersection = sets:intersection(AllBins),
case needs_link(SoName, sets:to_list(Intersection)) of
AllBins = [sets:from_list(Bins),
sets:from_list(NewBins)],
NewBins1 = sets:intersection(AllBins),
case needs_link(SoName, sets:to_list(NewBins1)) of
true ->
rebar_utils:sh(
?FMT("$CC ~s $LDFLAGS $DRV_LDFLAGS -o ~s",
[string:join(Bins, " "), SoName]),
Fmt = "$CC ~s $LDFLAGS $DRV_LDFLAGS -o ~s",
Vars = [string:join(Bins, " "), SoName],
rebar_utils:sh(?FMT(Fmt, Vars),
[{env, Env}]);
false ->
?INFO("Skipping relink of ~s\n", [SoName]),