1%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*- 2%% ex: ft=erlang ts=4 sw=4 et 3OtpVersion = erlang:system_info(otp_release), 4Config1 = case hd(OtpVersion) =:= $R andalso OtpVersion < "R15B02" of 5 true -> 6 HashDefine = [{d,old_hash}], 7 case lists:keysearch(erl_opts, 1, CONFIG) of 8 {value, {erl_opts, Opts}} -> 9 lists:keyreplace(erl_opts,1,CONFIG,{erl_opts,Opts++HashDefine}); 10 false -> 11 CONFIG ++ [{erl_opts, HashDefine}] 12 end; 13 false -> CONFIG 14 end. 15