From fff893a47e0488ab2fc486681ab4bd6986ce5b12 Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Tue, 22 Feb 2022 12:36:11 -0600 Subject: [PATCH] Test skipping enc completely --- rebar.config.script | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/rebar.config.script b/rebar.config.script index 37deacb..0c9cca4 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -39,21 +39,10 @@ Config2 = case os:type() of end, IsRebar3 = code:which(rebar3) /= non_existing, -OTPRel = erlang:system_info(otp_release), -OTPVsn = case re:run(OTPRel, "R?(\\d+)", [{capture, all_but_first, list}]) of - {match, [V]} -> list_to_integer(V); - nomatch -> erlang:error(unknown_otp_release) -end, - -case {IsRebar3, OTPVsn} of - {false, _} -> +case IsRebar3 of + false -> Config2; - {true, Vsn} when Vsn < 25 -> - Config2 ++ [ - {pre_hooks, [{"", compile, "escript enc compile"}]}, - {post_hooks, [{"", clean, "escript enc clean"}]} - ]; - {true, Vsn} when Vsn >= 25 -> + true -> Config2 ++ [ {plugins, [{pc, "~> 1.0"}]}, {artifacts, ["priv/jiffy.so"]},