build: remove bashism.

* build-aux/trace.sh (trace): Remove bashism.  Thanks pdewacht!
This commit is contained in:
Jan Nieuwenhuizen 2018-10-05 21:24:14 +02:00
parent 133013a3d2
commit f1d93da665
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -17,7 +17,7 @@
# along with GNU Mes. If not, see <http://www.gnu.org/licenses/>. # along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
if [ -z "$V" -o "$V0" = 0 ]; then if [ -z "$V" -o "$V0" = 0 ]; then
function trace () { trace () {
echo " $1" echo " $1"
shift shift
eval "$@" $LOG eval "$@" $LOG
@ -25,7 +25,7 @@ if [ -z "$V" -o "$V0" = 0 ]; then
LOG=" >>build.log 2>&1" LOG=" >>build.log 2>&1"
fi fi
if [ "$V" = 1 ]; then if [ "$V" = 1 ]; then
function trace () { trace () {
shift shift
echo "$@" echo "$@"
eval "$@ $LOG" eval "$@ $LOG"
@ -34,7 +34,7 @@ if [ "$V" = 1 ]; then
fi fi
if [ "$V" = 2 ]; then if [ "$V" = 2 ]; then
set -x set -x
function trace () { trace () {
shift shift
eval "$@" eval "$@"
} }