build: remove bashism.
* build-aux/trace.sh (trace): Remove bashism. Thanks pdewacht!
This commit is contained in:
parent
133013a3d2
commit
f1d93da665
|
@ -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 "$@"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue