Browse Source

Merge pull request #2265 from ferd/track-vsn-in-escript

Annotate generated escript with last release
pull/2267/head
Fred Hebert 5 years ago
committed by GitHub
parent
commit
aae3e3d22e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions
  1. +1
    -0
      rebar.config
  2. +2
    -1
      src/rebar_prv_local_install.erl

+ 1
- 0
rebar.config View File

@ -24,6 +24,7 @@
]}.
{escript_name, rebar3}.
{escript_comment, "%%Rebar3 3.14.0-rc1\n"}.
{escript_emu_args, "%%! +sbtu +A1\n"}.
%% escript_incl_extra is for internal rebar-private use only.
%% Do not use outside rebar. Config interface is not stable.

+ 2
- 1
src/rebar_prv_local_install.erl View File

@ -62,8 +62,9 @@ format_error(Reason) ->
io_lib:format("~p", [Reason]).
bin_contents(OutputDir) ->
{ok, Vsn} = application:get_key(rebar, vsn),
<<"#!/usr/bin/env sh
## Rebar3 ", (iolist_to_binary(Vsn))/binary, "
erl -pz ", (rebar_utils:to_binary(OutputDir))/binary,"/*/ebin +sbtu +A1 -noshell -boot start_clean -s rebar3 main $REBAR3_ERL_ARGS -extra \"$@\"
">>.

Loading…
Cancel
Save