Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1333027imm; Tue, 22 May 2018 02:18:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpgB4SKgKy55L1Z9q8d165QwT5Ol26Iqf3Y8Ef0yqCyimiNWyTEqsAJiZxxW2xgn5QT8wKE X-Received: by 2002:a17:902:8f97:: with SMTP id z23-v6mr24326466plo.329.1526980680623; Tue, 22 May 2018 02:18:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526980680; cv=none; d=google.com; s=arc-20160816; b=XsMNla3QtxcOGwa/FmOLd8VrkLmAtFFhjGwgWSXhNVdeK96THUfEnY8vNHUf/47/jD pmbE3nKSfKvHEiWkdh4kfeCrBnxrt3eJ3X29iFdolFxxLW170rN9UeK3CM79ryP/588J YpX5RDawC1rXpHyZcFbICaDVEyoI0RSFPSJ0BUnRlr0Lej1WG5X0O3BeyMIxs7kqr5LE w/S3kvlRqyahLZ8hfOQboRFwoYk3WoS//30ZL93nm/t3/Ok7sK5JHvoOdYTXZ9TA9rfE PwPv44mNly4PIAZtQDMTjY8uRIoBLAeRLKNDRqaF/Qy8o7f3pHFTYmzJxc4WMR754Tmw spAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=yVuCzzSSXYLWOfsb8YrKfULGcTZ/XHUnSpwZb0nTzpg=; b=o/Twq/xqH8C212eft8FR6lYHCx7JeZMhZxGecfmfvSYkWHY3QZ9Y3TRWsFNkw09Di1 fbkfXBi3KvAazrG2/pwz8a0MovUmF9x6aVWdPRZHGy47QnlyG1aO9uyvWlubprkapJz8 R76CKzmtPBzEBUyKpxPnur2NFECMCLz5doFWbWR5oJTosG0WdzoM0f0bwUBKDj53zR3b VgMLmHXHPo1Vjqn2Ed6KfDFcfISZ0vQqTaCGU7J/pCH5HPnscWSHPRLQMCc1h6V/AW0r 5ECM3+jHDnp2rLAopfyRxMVqZbv9qWEI2m4PWXxOPkqUPkVlfyfAa9P23sr/Sygjb2e8 uSlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dnzyNFma; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6-v6si16906045pll.69.2018.05.22.02.17.45; Tue, 22 May 2018 02:18:00 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=dnzyNFma; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751363AbeEVJQM (ORCPT + 99 others); Tue, 22 May 2018 05:16:12 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:45867 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751160AbeEVJQK (ORCPT ); Tue, 22 May 2018 05:16:10 -0400 Received: by mail-pg0-f66.google.com with SMTP id w3-v6so7588914pgv.12 for ; Tue, 22 May 2018 02:16:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=yVuCzzSSXYLWOfsb8YrKfULGcTZ/XHUnSpwZb0nTzpg=; b=dnzyNFmaJQePMHyanhQByA87B0E3spOe7LinxCLZSfzAFsxOXJ2EABS+5sTHk3BORk Xj5O1+fMWnuudnCgjZlKeT/RssyUdgyxzjQYdB2vrdZWYd5x4t5/kEKsy+0yMyxQwedd AFGqBiTvfxmg5lAJBBkyceYdRmabuOunixxqOCjR7X7+oRys97M9LIQDI5MlqiF6Nac/ KCD6JF+S/j8UTs99s6Lo8duBUaNuZHmyqT4JNSHBvpvoNC9kh84Qb21kHTxfcNebjxPK IN/okNVNaq6KdOLGO0nrO6imdAOrIQh0bLNaVfQWPbxTcMV+c4rggBWPYOe5KNIhtc6E cIhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=yVuCzzSSXYLWOfsb8YrKfULGcTZ/XHUnSpwZb0nTzpg=; b=hA0n2V7rtHayyBiGbUGff+s7FagGfX0zXOjx9Z6DPFKXfzl8ZxJ3vMTr9BE4wt2fZZ 3zI2UbLAcQKjO7VTgmIvelRmABN36NLiLbsP4cOT/u/fVPPeYIbEbhE3z7V5tyP1uyfy 76w/jMdRhm/aMLDgtYe/h2u/qBSqhLBiDNIfyy3Ntj7C7HMQkDVUlAM4xD+DEgmtCGAy 4h+01dGlcaE4/tMglEr7gewA3ULofYGsw5YuTb57Qhy04yFT//3ljy9lwG2eDgeTHcS3 rQik2O9MuXZzHZhGf0+WDSMykJ7sjgimMw1lHF2aa+aO2vVzHtrZGs6O2ZIvSlmZfuI1 l3mQ== X-Gm-Message-State: ALKqPwf+r1PzfWMDctVR6/hlKe+fdHg/zAOOYo1zmV/YBbgGlqC4OG/T +Pad5hLXZqXypcrIbgNUljlTNw== X-Received: by 2002:a65:45c7:: with SMTP id m7-v6mr3788214pgr.109.1526980570252; Tue, 22 May 2018 02:16:10 -0700 (PDT) Received: from gmail.com ([2605:e000:1117:c0e3:2e0:1bff:fe70:ea]) by smtp.gmail.com with ESMTPSA id n4-v6sm5593697pgd.5.2018.05.22.02.16.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 May 2018 02:16:09 -0700 (PDT) Date: Mon, 21 May 2018 23:16:06 -1000 From: Joey Pabalinas To: Masahiro Yamada Cc: Andrew Morton , Linux Kernel Mailing List , Arend van Spriel , Robert Jarzmik , Joey Pabalinas Subject: [PATCH v5] scripts/tags.sh: use `find` for $ALLSOURCE_ARCHS generation Message-ID: <20180522091606.uxvnrz7bbotpxnhn@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fr4cuyany7qhvesp" Content-Disposition: inline User-Agent: NeoMutt/20180323-62-378db9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --fr4cuyany7qhvesp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable The current code includes 'Kconfig' in ALLSOURCE_ARCHS, but it should not (Kconfig is not an architecture). Replace this with a find-generated string and directly assign it to $ALLSOURCE_ARCHS. The find_all_archs() function is no longer needed for a one-liner with obvious semantics, so inline the arch generation into the surrounding conditional. Signed-off-by: Joey Pabalinas 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/scripts/tags.sh b/scripts/tags.sh index 78e546ff689c2d5f40..e587610d149271171d 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -26,24 +26,15 @@ else fi =20 # ignore userspace tools ignore=3D"$ignore ( -path ${tree}tools ) -prune -o" =20 -# Find all available archs -find_all_archs() -{ - ALLSOURCE_ARCHS=3D"" - for arch in `ls ${tree}arch`; do - ALLSOURCE_ARCHS=3D"${ALLSOURCE_ARCHS} "${arch##\/} - done -} - # Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH if [ "${ALLSOURCE_ARCHS}" =3D "" ]; then ALLSOURCE_ARCHS=3D${SRCARCH} elif [ "${ALLSOURCE_ARCHS}" =3D "all" ]; then - find_all_archs + ALLSOURCE_ARCHS=3D$(find ${tree}arch/ -mindepth 1 -maxdepth 1 -type d -pr= intf '%f ') fi =20 # find sources in arch/$ARCH find_arch_sources() { --=20 2.17.0.rc1.35.g90bbd502d54fe92035.dirty --fr4cuyany7qhvesp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKlZXrihdNOcUPZTNruvLfWhyVBkFAlsD39YACgkQruvLfWhy VBloFRAAqVfelpt1TH6qM+GA0THndQQizTcPl/eAiZ4UaQfboNztKbH+ouBDe10A X1+buVUTikKEr9KQi70nBcLe4ukE5TJPkVAO+RuWNkYROBw6CCeBVDzSbAydwa4f 10dryXqawpcr+dxDACM4nJkltGxVDa5dmNN4hYtFF6qkQI0OVdvPHP0mpUVM/vx6 s00u+gEsI9SfHb/dh+xQFwDTGbZtB3bBynUC7ipjti4AuR0hek5Rl2BSeRvvkKBW d2jTNl++3LDTARWCmyBCQFFb3v+uYkTW2reriCyfrD8w16ZpEkdwO1o7QsgLHCbF vMBoDGi9AKx9xoWNrjSEgyRPic6d3LlmJeFXaIxNlPebtPY5LIG/WG6+x4qnrCKt HzT/e36AhFkHPqxtJbVn/9hfW6RGo8AVxS96FeGsQgUZAqKl/kvji2rWuEOS7UIA qFowapCXMlAmlKpQyfkwUiNHAwgRHLXsbtxquLziEoVCRxSBR7g9reNip34QjmzX R5z8DRZaKtKkwHbp/UXyU80Da5GmrM9luR7h1fdkuTef8FR9prUxxbHnv0pNzxtb HAzN+IxTtBRMqZAEbWLidagyqbKlID1qNLSbwuBknlqVNTde5aQkR2lcUh8eBO+m AzFlfwIaB3jpANLLcbUlJspJgidyHe5rczOeV3BeGFkeVUXi150= =f0N4 -----END PGP SIGNATURE----- --fr4cuyany7qhvesp--