···4141 {ok, RequiredData} = gather_required_data_from_the_environment(ArgData),
4242 do_the_bootstrap(RequiredData).
43434444-%% @doc There are two modes 'registery_only' where the register is
4444+%% @doc There are two modes 'registry_only' where the register is
4545%% created from hex and everything else.
4646-spec do_the_bootstrap(#data{}) -> ok.
4747do_the_bootstrap(RequiredData = #data{registry_only = true}) ->
···5555%% @doc
5656%% Argument parsing is super simple only because we want to keep the
5757%% dependencies minimal. For now there can be two entries on the
5858-%% command line, "registery-only" and "debug-info"
5858+%% command line, "registry-only" and "debug-info"
5959-spec parse_args([string()]) -> #data{}.
6060parse_args(Args0) ->
6161 PossibleArgs = sets:from_list(["registry-only", "debug-info"]),
···146146147147%% @doc
148148%% This takes an app name in the standard OTP <name>-<version> format
149149-%% and returns just the app name. Why? because rebar is doesn't
149149+%% and returns just the app name. Why? because rebar doesn't
150150%% respect OTP conventions in some cases.
151151-spec fixup_app_name(string()) -> string().
152152fixup_app_name(FileName) ->
153153 case string:tokens(FileName, "-") of
154154 [Name] -> Name;
155155- [Name, _Version] -> Name
155155+ [Name, _Version] -> Name;
156156+ [Name, _Version, _Tag] -> Name
156157 end.
157158158159-spec bootstrap_registry(#data{}) -> ok.