Skip to content

Commit

Permalink
Merge branch 'master' into gh-4133-contract_code_endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
zxq9 committed Jun 24, 2023
2 parents e47da84 + fe756bc commit d440f3f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
16 changes: 13 additions & 3 deletions apps/aeutils/src/aeu_env.erl
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,19 @@ data_dir(Name) when is_atom(Name) ->
filename:join([setup:data_dir(), Name]).

config_file() ->
case default_config_file() of
undefined -> deprecated_config_file();
F -> F
case command_line_config_file() of
undefined ->
case default_config_file() of
undefined -> deprecated_config_file();
F -> F
end;
F -> F
end.

command_line_config_file() ->
case init:get_argument('-config') of
{ok, [[F]]} -> F;
_ -> undefined
end.

default_config_file() ->
Expand Down
2 changes: 1 addition & 1 deletion docs/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The easiest way to install package on MacOS is Homebrew, it can be installed by
Then install the build dependencies using the `brew` command:
```
brew update
brew install erlang@23 openssl libsodium autoconf gmp cmake
brew install erlang@23 openssl libsodium autoconf gmp cmake automake
```

If building on an m1 Mac homebrew does not automatically set up symlinks to system directories, so before running `make` set up the build path with:
Expand Down
14 changes: 4 additions & 10 deletions scripts/aeternity_bin
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,19 @@ relx_usage() {

case "$command" in
foreground)
echo "Usage: $REL_NAME foreground"
echo "Usage: $REL_NAME foreground [--config aeternity.{json|yaml}]"
echo " Starts the Aeternity node in the foreground, meaning all output"
echo " going to stdout but without an interactive shell."
echo " This command is recommended for starting the Aeternity node"
echo " in a systemd based system as a simple process."
;;
start)
echo "Usage: $REL_NAME start"
echo "Usage: $REL_NAME start [--config aeternity.{json|yaml}]"
echo " Starts the Aeternity node as a background daemon"
echo " This command is provided for use in traditional SysV init scripts"
;;
console)
echo "Usage: $REL_NAME console"
echo "Usage: $REL_NAME console [--config aeternity.{json|yaml}]"
echo " Starts the Aeternity node with an interactive Erlang shell."
;;
cli)
Expand Down Expand Up @@ -112,18 +112,12 @@ relx_usage() {
echo "Usage: $REL_NAME ping"
echo " Test if the Aeternity node is running and responsive."
;;
console)
echo "Usage: $REL_NAME console"
echo " Start the Aeternity node with an interacive Erlang shell."
echo " This mode is useful for advanced users who wish to expore the internals"
echo " of the Erlang node, and for debugging startup issues."
;;
status)
echo "Usage: $REL_NAME status"
echo " Show summary information about the Aeternity node."
;;
check_config)
echo "Usage: $REL_NAME check_config CONFIG_FILE [SCHhEMA_FILE]"
echo "Usage: $REL_NAME check_config CONFIG_FILE [SCHEMA_FILE]"
echo " Validate the aeternity config file against its schema."
;;
keys_gen)
Expand Down

0 comments on commit d440f3f

Please sign in to comment.