[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reducing verbosity of automake
From: |
Bruce Korb |
Subject: |
Re: Reducing verbosity of automake |
Date: |
Tue, 25 Apr 2006 15:41:57 -0700 |
User-agent: |
Mozilla Thunderbird 1.0.7 (X11/20050923) |
Brendon Costa wrote:
Seems pretty reasonable to me, but I'd suggest a little tweak:
#! /bin/sh
#
DESCRIPTION=$1
COMMAND=$2
shift
shift
echo $DESCRIPTION
< $COMMAND $* > /dev/null
---
> output=`$COMMAND ${1+"$@"}`
RESULT=$?
if test $RESULT -ne 0; then
> exec 1>&2
echo "Command failure:"
echo "\t$COMMAND $*"
> echo "$output"
fi
exit $RESULT