Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4305019imm; Fri, 18 May 2018 02:55:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo9hEHEuchexCjSKOLeKuNywkyZ9+xwuxOZuiiOfABA/RZDSoyhbneHvaGAq12mc5BDEsoA X-Received: by 2002:a17:902:ea:: with SMTP id a97-v6mr8632445pla.28.1526637339637; Fri, 18 May 2018 02:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526637339; cv=none; d=google.com; s=arc-20160816; b=YdFbWIi+W7QuvQkXg9mgAHqrmqqqzG9FdiGP0twFaRQ0ZVs2Bzuwk3La1bT1VktupC QIhW8EG0mmSvKhGKaXTFJZmkBDN/rgw0IBJ32zMIEaUx14WBUTPcv7HSGNDfcBVSv3WK 3mTB/xvvCQG860Yzyv15CTfjh/ZmzZ+zQUvlZxgQsGht/bY6RQf5wUsKGnqGJPkXQo7u OAkNriAsvk2fjwtYaGP00WfZOwm3Dc0In42bMkaJpT0cxJb2qCGH0UAGcCuBqArLOFhp 6hc/xhcbv32y+ysE+uQMLpD7zRPcIKlYs+oEfEC+FwdFbR34yPNzrvVxThDoOOiZtuhi o02Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=h5pQAt+YbLy/986T+rAdrfTKYF9PVGXNObgXy/OmsBI=; b=E/ngeMN2Hkf6ug+9FN3zvRBfJKYxEkQpSWuMSey0UUxCFAETKKIi1s6ls6UprI9qbu TwYkgLHEYEIQ5YUZmbVdXjNlaqraoVD35xCM8RpxVbkmfRTe7tZzG966H2oyf85bEFLu Lw+au6xUwxNjZuGDJiIaWDjEPb3ut4CAfDlDVVceSDGp595O03dFoJNMTDgVUPIBjJfv qL7lHgeASTFSlgcJxwHIlmOUzRmGIrXOVsuLDfkiMr6TnRScM/FKxRylTOce528N/XFk ivas86PM1HG+7UpoxXxUdYbQMAeNPkvHKcxAfn17BGb8P/6s2kC6ydoJpBWEUth5Wn66 sFNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Su9yrWEM; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t20-v6si5735784pgu.183.2018.05.18.02.55.25; Fri, 18 May 2018 02:55:39 -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=@nifty.com header.s=dec2015msa header.b=Su9yrWEM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752519AbeERJxe (ORCPT + 99 others); Fri, 18 May 2018 05:53:34 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:26806 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751506AbeERJxc (ORCPT ); Fri, 18 May 2018 05:53:32 -0400 Received: from mail-ua0-f178.google.com (mail-ua0-f178.google.com [209.85.217.178]) (authenticated) by conssluserg-04.nifty.com with ESMTP id w4I9rT3M007543 for ; Fri, 18 May 2018 18:53:30 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com w4I9rT3M007543 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1526637210; bh=h5pQAt+YbLy/986T+rAdrfTKYF9PVGXNObgXy/OmsBI=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=Su9yrWEM9tC+EvB78aXLpQ53lXhoy5xC276djNsRxbqc5BEiIMuAmKnotRg2hzyS5 D527FY5q7f8gjIWZT9vvgVHf6EaVGM3gOMK3FLqrv+M8D1Cx3YD7ehADt48GPidNkN ondgdHJIE/mXzsysVCdK6Aa01ESbEeR7UZ0zGTUQHtRQQXfTojj868ncPEHcp80Lbb +bBNsSqnHhH/aUF6ilfGCYIUsioFUsvYjT0jndeswWD4eKIgZkZnh3rLrecsQ8XxhX RNfpiDkyk0bJrLcMLrx+vPtsRZ7/ABVY9B1JZXb7svyLRMO5p2N7sj9O2OP/TAiTyo KQNjscdAs/+bw== X-Nifty-SrcIP: [209.85.217.178] Received: by mail-ua0-f178.google.com with SMTP id g9-v6so4959243uak.7 for ; Fri, 18 May 2018 02:53:30 -0700 (PDT) X-Gm-Message-State: ALKqPwdzv2G1fAlaGDlqRpYFfA/O5naEf/Nm6tjQsGNLpQc1ueN8moLS NyLLIgTYH0CLzsSCB/mqYHGlgeXt1DpBAZCVjUo= X-Received: by 2002:ab0:5216:: with SMTP id i22-v6mr6646834uaa.52.1526637209088; Fri, 18 May 2018 02:53:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.85.216 with HTTP; Fri, 18 May 2018 02:52:48 -0700 (PDT) In-Reply-To: <20180518093131.7g5m4mu3mtrgb7so@gmail.com> References: <20180518062553.kodjjrlrosrg7vfq@gmail.com> <20180518093131.7g5m4mu3mtrgb7so@gmail.com> From: Masahiro Yamada Date: Fri, 18 May 2018 18:52:48 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] scripts/tags.sh: don't parse `ls` for $ALLSOURCE_ARCHS generation To: Joey Pabalinas Cc: Andrew Morton , Linux Kernel Mailing List , Arend van Spriel , Robert Jarzmik Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-05-18 18:31 GMT+09:00 Joey Pabalinas : > On Fri, May 18, 2018 at 04:08:44PM +0900, Masahiro Yamada wrote: >> I do not like hard-coding the file(s) in arch/. >> >> Don't you have an idea to list only directories? >> 'find -type d' or 'ls -F' or something? > > How do you feel about the following? > >> # Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH >> if [ "${ALLSOURCE_ARCHS}" = "" ]; then >> ALLSOURCE_ARCHS="${SRCARCH}" >> elif [ "${ALLSOURCE_ARCHS}" = "all" ]; then >> ALLSOURCE_ARCHS="$(cd "${tree}arch/" && find . -maxdepth 1 -type d | paste -sd' ')" Why is 'paste' necessary? >> ALLSOURCE_ARCHS="${ALLSOURCE_ARCHS//[.\/]}" >> fi > > If something like that if acceptable, I'll use that for the v4. > > -- > Cheers, > Joey Pabalinas -- Best Regards Masahiro Yamada