diff options
author | Björn Gustavsson <[email protected]> | 2018-07-06 12:39:19 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2018-07-06 12:40:49 +0200 |
commit | 573fda73e8132dd45e6537724fa1842e98b6d811 (patch) | |
tree | 4fc9d3b429ce53ae0cf3404706ef1f9dbb855e28 /scripts/diffable | |
parent | 07332f96e5490a3d97d2a1e0b2094aa51f67af44 (diff) | |
download | otp-573fda73e8132dd45e6537724fa1842e98b6d811.tar.gz otp-573fda73e8132dd45e6537724fa1842e98b6d811.tar.bz2 otp-573fda73e8132dd45e6537724fa1842e98b6d811.zip |
diffable: Don't define VSN for the ssl app
Diffstat (limited to 'scripts/diffable')
-rwxr-xr-x | scripts/diffable | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/scripts/diffable b/scripts/diffable index 08d2d5cb35..6a9792e857 100755 --- a/scripts/diffable +++ b/scripts/diffable @@ -117,16 +117,25 @@ get_files(Apps, #{}=Opts) -> {Files,Opts}. add_opts([F|Fs], Opts0) -> - Opts = case filename:basename(F) of - "group_history.erl" -> + Opts = case vsn_is_harmful(F) of + true -> Opts0 -- [{d,'VSN',1}]; - _ -> + false -> Opts0 end, [{F,Opts}|add_opts(Fs, Opts0)]; add_opts([], _Opts) -> []. +vsn_is_harmful(F) -> + case filename:basename(F) of + "group_history.erl" -> + true; + _ -> + App = filename:basename(filename:dirname(filename:dirname(F))), + App =:= "ssl" + end. + get_src(["preloaded"|Apps]) -> WC = filename:join(code:root_dir(), "erts/preloaded/src/*.erl"), filelib:wildcard(WC) ++ get_src(Apps); |