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/>.
if [ -z "$V" -o "$V0" = 0 ]; then
function trace () {
trace () {
echo " $1"
shift
eval "$@" $LOG
@ -25,7 +25,7 @@ if [ -z "$V" -o "$V0" = 0 ]; then
LOG=" >>build.log 2>&1"
fi
if [ "$V" = 1 ]; then
function trace () {
trace () {
shift
echo "$@"
eval "$@ $LOG"
@ -34,7 +34,7 @@ if [ "$V" = 1 ]; then
fi
if [ "$V" = 2 ]; then
set -x
function trace () {
trace () {
shift
eval "$@"
}