sh-elf-vhex - v2.0.0-rc11 : fix MacOS support + update logs

*update*
> [scripts]
  | [install] more explicit post-install instruction

*fix*
> [scripts]
  | [utils] fix missing VERBOSE check
  | [utils] fix `nproc` check for make in Darwin OS
This commit is contained in:
YannMagnin 2023-12-20 17:48:32 +01:00
parent 7d8efc839d
commit 170bd7514a
No known key found for this signature in database
GPG Key ID: D82629D933EADC59
2 changed files with 7 additions and 5 deletions

View File

@ -29,7 +29,7 @@ function utils_find_last_version()
function utils_callcmd()
{
if [[ -v 'VERBOSE' && "$VERBOSE" == '1' ]]
if [[ "$VERBOSE" == '1' ]]
then
echo "$@"
if ! "$@"; then
@ -49,7 +49,7 @@ function utils_callcmd()
function utils_warn_callcmd()
{
if [[ -v 'VERBOSE' && "$VERBOSE" == '1' ]]
if [[ "$VERBOSE" == '1' ]]
then
echo "$@"
if ! "$@"; then
@ -73,7 +73,7 @@ function utils_makecmd()
{
local cores
[[ $(uname) == "OpenBSD" ]] \
[[ "$(uname -s)" == 'OpenBSD' || "$(uname -s)" == 'Darwin' ]] \
&& cores=$(sysctl -n hw.ncpu) \
|| cores=$(nproc)
[[ $(command -v gmake >/dev/null 2>&1) ]] \

View File

@ -158,5 +158,7 @@ then
rm -rf ../../build
fi
echo 'Successfully installed sh-elf-vhex !'
echo "Do not forget to export the binary path '$prefix_install'"
echo -en \
'Successfully installed sh-elf-vhex !\n' \
'\rDo not forget to export the binary path' \
"'export PATH=\"\$PATH:$prefix_install\"'"