From patchwork Tue Dec 4 21:47:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 152867 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp8572765ljp; Tue, 4 Dec 2018 13:48:33 -0800 (PST) X-Google-Smtp-Source: AFSGD/VuhIdlCHWuHsYHUb8sMTz00kOTMw57iSTS8Tfx7z/THPh8A4HbfxjQWgupz0S0OauC7PL7 X-Received: by 2002:a63:9f19:: with SMTP id g25mr18112315pge.327.1543960113808; Tue, 04 Dec 2018 13:48:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543960113; cv=none; d=google.com; s=arc-20160816; b=t7b7/XymxByC4xW2c1nZs7y60sqReRBQyG0WJzWxRXUjBLn2vALsDBPUnRG3I6Xxmy WNoh1qGrS4xk4akmHHnraTTc4NGYfZvlYdaUtsa4UMKKe+p+N3iF4jhCB80YCxETwgXK UlfTNMYNdDpz73ZaQKjyjZL2QPaqnt/2XqJkTAHty+KEvyX7yD4A0kOmE28x2jPK3oAn gFt8njh188cF5rTYZLvH0y+z+wygXzUrVIYjXE3DbYyotmM4QfvbCFqc6HXWM4ukPuNA VYhX5ysv4Ov3ind/R0i/gLuoJmYpFSH+j4R3r/QfP3QYMJ+RH9wEw3OQKqmStw3Ggz4K IaYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Vj6GT3eveI27j/Bj9yewPJUZgNmPQCpJLb+Kzh1op4M=; b=yMX93sppsAdeS/8RtYsmOHPoazJw2Gloi4gkjCWH6VDlm6toMO6gZ7JPwuLoAsCjrM /Cdy0GuRI9/LXDtZvqbfFVaByqka6mJzXW3TTmnxTGrYuBKuYLRcQDWGPdEivpYpTRpS dF3UOD9Ay9HFGylxLgZB6LiBob6Rg3hX/maXSA/OrmIUvsV+DChgaTIPFt4EU1QLwhNq fgArIS6Lny6Bk+wk17I4L+Lc3wb9RJ6pvuO4UbAjzvSrVxauuOPoF4HAE3c3t8B+yB/J PM3Xlyrj/UVq+YuaOHJIOLcmGjTELCv9sYfiEWNEEe6Wq/FFnpYQzbPAm4xXHleaUjsr PgBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kae8pN6q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z188si15424192pgb.330.2018.12.04.13.48.33; Tue, 04 Dec 2018 13:48:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kae8pN6q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726431AbeLDVsc (ORCPT + 31 others); Tue, 4 Dec 2018 16:48:32 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:42469 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbeLDVsb (ORCPT ); Tue, 4 Dec 2018 16:48:31 -0500 Received: by mail-lf1-f68.google.com with SMTP id l10so13124806lfh.9 for ; Tue, 04 Dec 2018 13:48:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Vj6GT3eveI27j/Bj9yewPJUZgNmPQCpJLb+Kzh1op4M=; b=kae8pN6qIQf7+C8xB1YKuHzOVRK0ji3JfwVU2JHASb/GJHSYGOMBTaJdpmGqxnOb+s 7+hXv2+fanc40KJrN2oniSVCIcj7S5pGsuPXWO5vNiOLVKaQXbb3iv7o9qbeqz+gjx7o FVqq+Rk+J3s1qf9LubyutMW+ui1sZm7ZaUPXA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Vj6GT3eveI27j/Bj9yewPJUZgNmPQCpJLb+Kzh1op4M=; b=ktnQQgf9+NPGqYva9iOoxgEuqs+pDn1qwnMDFYHtJ2/7vD4BT9SMX888IWxlJMPTJ6 BzsUkrUyd6yUB5uP7Jx+qjtDKO4tAEhzNtcnbHDMeBGZxjG/7GbmqzCz2E5y+jOcyKaF IHmYTyJHb9H+HVijIhBjvBTRFTjiba0MTU6tsXnK6uL+50kT0A6aWdJWin8yeIac+Zlm dcFzISazlevJjuAr8kFFLVuWA85UyWgRkD5P53rC28rTYQbTn/q90fQ5fL6lOeCf9A/t NdvCTx8jbs9B/6y+yc3OzQdknVyDab0fPQI9VsWwcY+58omOWyCOpkIIF09F+Q7RHYrZ R+yQ== X-Gm-Message-State: AA+aEWaoHK8X5LPPiHBJHsg1nRCKIYavWkCLM+uokPmrDSmfLhxGIJUr 2aoZ26lwfX4EsEySXtXHsKwowA== X-Received: by 2002:a19:f89:: with SMTP id 9mr12577610lfp.10.1543960109427; Tue, 04 Dec 2018 13:48:29 -0800 (PST) Received: from localhost (c-732171d5.07-21-73746f28.bbcust.telenor.se. [213.113.33.115]) by smtp.gmail.com with ESMTPSA id f20-v6sm3393640ljk.33.2018.12.04.13.48.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Dec 2018 13:48:28 -0800 (PST) From: Anders Roxell To: will.deacon@arm.com, peterz@infradead.org Cc: linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] scripts/atomic: change 'fold' to 'grep' Date: Tue, 4 Dec 2018 22:47:13 +0100 Message-Id: <20181204214713.5812-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some distibutions and build systems doesn't include 'fold' from coreutils default. .../scripts/atomic/atomic-tbl.sh: line 183: fold: command not found Rework to use 'grep' instead of 'fold' to use a dependency that is already used a lot in the kernel. Reported-by: Naresh Kamboju Suggested-by: Will Deacon Signed-off-by: Anders Roxell --- scripts/atomic/atomic-tbl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.19.2 Acked-by: Will Deacon diff --git a/scripts/atomic/atomic-tbl.sh b/scripts/atomic/atomic-tbl.sh index 9d6be538a987..81d5c32039dd 100755 --- a/scripts/atomic/atomic-tbl.sh +++ b/scripts/atomic/atomic-tbl.sh @@ -180,7 +180,7 @@ gen_proto_variants() #gen_proto(meta, ...) gen_proto() { local meta="$1"; shift - for m in $(echo "${meta}" | fold -w1); do + for m in $(echo "${meta}" | grep -o .); do gen_proto_variants "${m}" "$@" done }