Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8762875imu; Tue, 4 Dec 2018 13:49:29 -0800 (PST) X-Google-Smtp-Source: AFSGD/XlzazY6WyhF0epGQ/s0F3rZ/L4wzFIj70Pv014mHE2et3H34KU8dlsZvsOpu+TUMKpa/Sw X-Received: by 2002:a63:3858:: with SMTP id h24mr16390353pgn.300.1543960169400; Tue, 04 Dec 2018 13:49:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543960169; cv=none; d=google.com; s=arc-20160816; b=y5Nu3pak+ury4lWx/Op6TB2D0/wtgpPAbxd8jttaBFR2atMeRMvsQCPrbGCOlvLlYr ZJyvLEnw0Ge8nqZhGThXhApnrzmzWWrHalAp7XpEqxbdBjuZvxIw2xpCAxOaYBizKbuh Wng6JRpmkFrfDj+F0szNolNNtIN8kXiNJ0/jNycVzQeZjS8YlJS0dEYV6FBBb0gaONTq bboh0hUEyq75j/WPBJqdx/Loe63qPo6UDAqMJP4dboXS+nWT+9yc6w10ydmxy2UQvJjL FKxtvPpLfDKKh+2HeS61d7AYc+cYnfnjm+9eph4WHPmRzJlFauXVJfhSuJREQv8tQoZc QY8Q== 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 cf16si19174970plb.227.2018.12.04.13.49.14; Tue, 04 Dec 2018 13:49:29 -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 S1726283AbeLDVsc (ORCPT + 99 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 Content-Transfer-Encoding: 8bit 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(-) 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 } -- 2.19.2