summaryrefslogtreecommitdiff
path: root/bootstrap/bootstrap
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2020-02-23 18:32:46 +0000
committerrillig <rillig@pkgsrc.org>2020-02-23 18:32:46 +0000
commit8113902fcec44387b01ffabbea776dd3c1336fa5 (patch)
tree77b1eab88dd352bb9f2796b9ebec2f501796e72f /bootstrap/bootstrap
parent8670bd4e118b1a58e39a3fdd3e4ad26fab636e73 (diff)
downloadpkgsrc-8113902fcec44387b01ffabbea776dd3c1336fa5.tar.gz
bootstrap: use $* instead of $@ where appropriate
This runs the echo command with fewer arguments (1 in most cases). The observable behavior is still the same, except for directory names containing spaces, which are not supported anyway.
Diffstat (limited to 'bootstrap/bootstrap')
-rwxr-xr-xbootstrap/bootstrap12
1 files changed, 6 insertions, 6 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 032ed74cd05..986938c3027 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.273 2019/12/05 22:19:56 sevan Exp $
+# $NetBSD: bootstrap,v 1.274 2020/02/23 18:32:46 rillig Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -123,13 +123,13 @@ mkbinarykit_tgz()
die()
{
- echo >&2 "$@"
+ echo >&2 "$*"
exit 1
}
echo_msg()
{
- echo "===> $@"
+ echo "===> $*"
}
# see if we're using gcc. If so, set $compiler_is_gnu to '1'.
@@ -293,7 +293,7 @@ is_root()
# run a command, abort if it fails
run_cmd()
{
- echo_msg "running: $@"
+ echo_msg "running: $*"
eval "$@"
ret=$?
if [ $ret -ne 0 ]; then
@@ -306,7 +306,7 @@ run_cmd()
# install-sh wrapper instead.
mkdir_p()
{
- for dir in $@; do
+ for dir in "$@"; do
run_cmd "$install_sh -d -o $user -g $group $dir"
done
}
@@ -424,7 +424,7 @@ if [ -n "$PKG_PATH" ]; then
fi
build_start=`date`
-echo_msg "bootstrap command: $0 $@"
+echo_msg "bootstrap command: $0 $*"
echo_msg "bootstrap started: $build_start"
# ensure system locations are empty; we will set them later when we know