Received: by mail.netbsd.org (Postfix, from userid 605) id 64A7A84E35; Sun, 23 Feb 2020 18:32:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id DE7DC84D75 for ; Sun, 23 Feb 2020 18:32:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id FgIpgpFEnVWq for ; Sun, 23 Feb 2020 18:32:46 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 66C2884D66 for ; Sun, 23 Feb 2020 18:32:46 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 5B2F5FBF4; Sun, 23 Feb 2020 18:32:46 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_158248276615060" MIME-Version: 1.0 Date: Sun, 23 Feb 2020 18:32:46 +0000 From: "Roland Illig" Subject: CVS commit: pkgsrc/bootstrap To: pkgsrc-changes@NetBSD.org Reply-To: rillig@netbsd.org X-Mailer: log_accum Message-Id: <20200223183246.5B2F5FBF4@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_158248276615060 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: rillig Date: Sun Feb 23 18:32:46 UTC 2020 Modified Files: pkgsrc/bootstrap: bootstrap Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.273 -r1.274 pkgsrc/bootstrap/bootstrap Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_158248276615060 Content-Disposition: inline Content-Length: 1333 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/bootstrap/bootstrap diff -u pkgsrc/bootstrap/bootstrap:1.273 pkgsrc/bootstrap/bootstrap:1.274 --- pkgsrc/bootstrap/bootstrap:1.273 Thu Dec 5 22:19:56 2019 +++ pkgsrc/bootstrap/bootstrap Sun Feb 23 18:32:46 2020 @@ -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 # 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 --_----------=_158248276615060--