chore: run escript in compile mode
This commit is contained in:
parent
e74a97013e
commit
ddd6f066e4
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env escript
|
#!/usr/bin/env -S escript -c
|
||||||
%% This script is part of 'relup' process to overwrite the OTP app versions (incl. ERTS) in rel files from upgrade base
|
%% This script is part of 'relup' process to overwrite the OTP app versions (incl. ERTS) in rel files from upgrade base
|
||||||
%% so that 'rebar relup' call will not generate instructions for restarting OTP apps or restarting the emulator.
|
%% so that 'rebar relup' call will not generate instructions for restarting OTP apps or restarting the emulator.
|
||||||
%%
|
%%
|
||||||
|
@ -7,6 +7,7 @@
|
||||||
%%
|
%%
|
||||||
%% note, we use NEW to overwrite OLD is because the modified NEW rel file will be overwritten by next 'rebar relup'
|
%% note, we use NEW to overwrite OLD is because the modified NEW rel file will be overwritten by next 'rebar relup'
|
||||||
%%
|
%%
|
||||||
|
|
||||||
main([Dir, RelVsn, BASE_VERSIONS]) ->
|
main([Dir, RelVsn, BASE_VERSIONS]) ->
|
||||||
{ErtsVsn, Overwrites} = get_otp_apps(rel_file(Dir, RelVsn), RelVsn),
|
{ErtsVsn, Overwrites} = get_otp_apps(rel_file(Dir, RelVsn), RelVsn),
|
||||||
lists:foreach(fun(BaseVer) ->
|
lists:foreach(fun(BaseVer) ->
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env escript
|
#!/usr/bin/env -S escript -c
|
||||||
|
|
||||||
main(_) ->
|
main(_) ->
|
||||||
OtpRelease = list_to_integer(erlang:system_info(otp_release)),
|
OtpRelease = list_to_integer(erlang:system_info(otp_release)),
|
||||||
|
|
Loading…
Reference in New Issue