forked from webmachine/webmachine
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix version check in rebar.config.script for 17.0
- Loading branch information
Showing
1 changed file
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |