Module Name: src
Committed By: pgoyette
Date: Tue Aug 24 20:52:32 UTC 2010
Modified Files:
src: build.sh
Log Message:
Replace a couple uses of '$@' with '$*'
In statusmsg2() make the msg variable local.
More thanks to Robert Elz.
To generate a diff of this commit:
cvs rdiff -u -r1.239 -r1.240 src/build.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/build.sh
diff -u src/build.sh:1.239 src/build.sh:1.240
--- src/build.sh:1.239 Tue Aug 24 15:28:22 2010
+++ src/build.sh Tue Aug 24 20:52:31 2010
@@ -1,5 +1,5 @@
#! /usr/bin/env sh
-# $NetBSD: build.sh,v 1.239 2010/08/24 15:28:22 pgoyette Exp $
+# $NetBSD: build.sh,v 1.240 2010/08/24 20:52:31 pgoyette Exp $
#
# Copyright (c) 2001-2009 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -65,6 +65,8 @@
statusmsg2()
{
+ local msg
+
msg="${1}"
shift
case "${msg}" in
@@ -81,7 +83,7 @@
?????????????????) msg="${msg} ";;
????????????????) msg="${msg} ";;
esac
- statusmsg "${msg}$@"
+ statusmsg "${msg}$*"
}
warning()
@@ -1382,7 +1384,7 @@
eval cat <<EOF ${makewrapout}
#! ${HOST_SH}
# Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from: \$NetBSD: build.sh,v 1.239 2010/08/24 15:28:22 pgoyette Exp $
+# Generated from: \$NetBSD: build.sh,v 1.240 2010/08/24 20:52:31 pgoyette Exp $
# with these arguments: ${_args}
#
@@ -1655,7 +1657,7 @@
sanitycheck
build_start=$(date)
- statusmsg2 "${progname} command:" "$0 $@"
+ statusmsg2 "${progname} command:" "$0 $*"
statusmsg2 "${progname} started:" "${build_start}"
statusmsg2 "NetBSD version:" "${DISTRIBVER}"
statusmsg2 "MACHINE:" "${MACHINE}"