mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-25 09:35:19 +00:00
Always display make/cmake invocation command
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
5c745fa7da
commit
0fa6b36257
@ -18,14 +18,20 @@ TOOL=$(basename "$0")
|
||||
# Locate original tool
|
||||
ORIGINAL_TOOL=$(type -ap ${TOOL} | grep -v "$0" | head -n1 )
|
||||
|
||||
if [[ ! " $@ " =~ " --version " ]]; then
|
||||
# Display the command being invoked - if it succeeds, this is all that will
|
||||
# be displayed. Don't do this for invocations with --version, because
|
||||
# this output is often parsed by scripts, so we don't want to modify it.
|
||||
echo -n "${TOOL} "
|
||||
printf '%q ' "$@"
|
||||
echo
|
||||
fi
|
||||
|
||||
if [[ " $@ " =~ $NO_SILENCE || -n "${VERBOSE_LOGS}" ]]; then
|
||||
# Run original command with no output supression
|
||||
${ORIGINAL_TOOL} "$@"
|
||||
EXIT_STATUS=$?
|
||||
else
|
||||
# Display the command being invoked - if it succeeds, this is all that will
|
||||
# be displayed.
|
||||
echo "${TOOL} $@"
|
||||
|
||||
# Run original command and capture output & exit status
|
||||
TMPFILE=$(mktemp /tmp/quiet-${TOOL}.XXXXXX)
|
||||
${ORIGINAL_TOOL} "$@" > ${TMPFILE} 2>&1
|
||||
|
@ -18,14 +18,20 @@ TOOL=$(basename "$0")
|
||||
# Locate original tool
|
||||
ORIGINAL_TOOL=$(type -ap ${TOOL} | grep -v "$0" | head -n1 )
|
||||
|
||||
if [[ ! " $@ " =~ " --version " ]]; then
|
||||
# Display the command being invoked - if it succeeds, this is all that will
|
||||
# be displayed. Don't do this for invocations with --version, because
|
||||
# this output is often parsed by scripts, so we don't want to modify it.
|
||||
echo -n "${TOOL} "
|
||||
printf '%q ' "$@"
|
||||
echo
|
||||
fi
|
||||
|
||||
if [[ " $@ " =~ $NO_SILENCE || -n "${VERBOSE_LOGS}" ]]; then
|
||||
# Run original command with no output supression
|
||||
${ORIGINAL_TOOL} "$@"
|
||||
EXIT_STATUS=$?
|
||||
else
|
||||
# Display the command being invoked - if it succeeds, this is all that will
|
||||
# be displayed.
|
||||
echo "${TOOL} $@"
|
||||
|
||||
# Run original command and capture output & exit status
|
||||
TMPFILE=$(mktemp /tmp/quiet-${TOOL}.XXXXXX)
|
||||
${ORIGINAL_TOOL} "$@" > ${TMPFILE} 2>&1
|
||||
|
Loading…
x
Reference in New Issue
Block a user