We use bootstrap.sh a lot in maintenance scripts but do not
need to see its output on success.
* Fix some incorrect uses of stderr and stdout such that
all (and only) errors appear on stderr
* Polish the message display when an error does occur
detecting one of the tools.
done
if [ "x$found" = "xNOT_FOUND" ]; then
echo "WARNING: Cannot find $tool version $versions" >&2
- echo "Trying `$tool --version | head -1`" >&2
+ echo "Trying `$tool --version 2>&1 | head -1`" >&2
found=""
fi
echo $found
if "$@"; then
true # Everything OK
else
- echo "$1 failed"
+ echo "$1 failed" >&2
echo "Autotool bootstrapping failed. You will need to investigate and correct" ;
echo "before you can develop on this source tree"
exit 1