Skip to content

Commit

Permalink
fix version check in rebar.config.script for 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vinoski committed May 28, 2014
1 parent 0e0887b commit f217a7c
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions rebar.config.script
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
case erlang:system_info(otp_release) =< "R15B01" of
true ->
HashDefine = [{d,old_hash}],
case lists:keysearch(erl_opts, 1, CONFIG) of
{value, {erl_opts, Opts}} ->
lists:keyreplace(erl_opts,1,CONFIG,{erl_opts,Opts++HashDefine});
false ->
CONFIG ++ [{erl_opts, HashDefine}]
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ft=erlang ts=4 sw=4 et

case erlang:system_info(otp_release) of
"R"++_=RVersion ->
case RVersion =< "R15B01" of
true ->
HashDefine = [{d,old_hash}],
case lists:keysearch(erl_opts, 1, CONFIG) of
{value, {erl_opts, Opts}} ->
lists:keyreplace(erl_opts,1,CONFIG,{erl_opts,Opts++HashDefine});
false ->
CONFIG ++ [{erl_opts, HashDefine}]
end;
false -> CONFIG
end;
false -> CONFIG
_ ->
CONFIG
end.

0 comments on commit f217a7c

Please sign in to comment.