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:
parent
7d8efc839d
commit
170bd7514a
|
@ -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) ]] \
|
||||
|
|
|
@ -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\"'"
|
||||
|
|
Loading…
Reference in New Issue