From nobody Thu May 2 22:29:14 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1565889235; cv=none; d=zoho.com; s=zohoarc; b=G4rvhPZxsdWkEA3kweJsh3WAtvTikRrZmnyBe1kc9j6QdWVUpikeatSNUDaNMokYRVmEv+79Lr4vSGaU/0OCh2Klb1y8cGuiuJScAC9qE6zKdUR1uygnPl/ZRodRfErAHBChbpkzRvyBqmHkFgN3mEzFojc+iND+9nqd7dKHm80= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565889235; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=HQ6OVb1gASXeYQk770Y2Cdur9Nh5VZVLjblndpZCaHA=; b=mQCEuaLuNGW97GGwBFANWvwF9v6R+L4B9GmdXxflmh/qS7ETB9i4K4uchY6rAqfjNfbQgg15uT1OHNvAKxMQMAFxtKy9z/ijL1DtxoyNCRzn4wjGIG1hR5EFDc16cjIkUF0JmPngYS81nNgPmLyfSNv8OfhXVeQhYS4VWvln9IM= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1565889235679645.5539316198248; Thu, 15 Aug 2019 10:13:55 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hyJIR-00058a-Pi; Thu, 15 Aug 2019 17:12:19 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hyJIQ-00058V-Mm for xen-devel@lists.xenproject.org; Thu, 15 Aug 2019 17:12:18 +0000 Received: from mail.xenproject.org (unknown [104.130.215.37]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id d5768914-bf7f-11e9-b90c-bc764e2007e4; Thu, 15 Aug 2019 17:12:17 +0000 (UTC) Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hyJIO-00044F-2I; Thu, 15 Aug 2019 17:12:16 +0000 Received: from localhost ([127.0.0.1] helo=localhost.localdomain) by xenbits.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hyJIN-0007ak-Qs; Thu, 15 Aug 2019 17:12:15 +0000 X-Inumbo-ID: d5768914-bf7f-11e9-b90c-bc764e2007e4 From: Lars Kurth To: xen-devel@lists.xenproject.org Date: Thu, 15 Aug 2019 18:11:58 +0100 Message-Id: <20190815171158.33884-1-lars.kurth@citrix.com> X-Mailer: git-send-email 2.13.0 Subject: [Xen-devel] [PATCH] Allow get_maintainer.pl / add_maintainers.pl scripts to be called outside of xen.git X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Lars Kurth , Stefano Stabellini , Wei Liu , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , Jan Beulich MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Use-case: Allow using both scripts on xen repositories such as mini-os.git, osstest.git, Tool changes: * add_maintainers.pl: $get_maintainer inherits path from $0 * get_maintainer.pl: warn (instead fo die) when called from a different tree Assumptions: the repository contains a MAINTAINERS file that follows the same conventions as the file in xen.git A suggested template =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D This file follows the same conventions as outlined in xen.git:MAINTAINERS. Please refer to the file in xen.git for more information. THE REST M: MAINTAINER1 M: MAINTAINER2 L: xen-devel@lists.xenproject.org S: Supported F: */ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D Signed-off-by: Lars Kurth --- scripts/add_maintainers.pl | 9 ++++++--- scripts/get_maintainer.pl | 13 +++++++++++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/scripts/add_maintainers.pl b/scripts/add_maintainers.pl index 09e9f6609f..7f98dde874 100755 --- a/scripts/add_maintainers.pl +++ b/scripts/add_maintainers.pl @@ -25,10 +25,13 @@ sub normalize ($$); sub insert ($$$$); sub hastag ($$); =20 -# Tool Variables -my $get_maintainer =3D "./scripts/get_maintainer.pl"; - +# Tool Variables=20 my $tool =3D $0; +my $get_maintainer =3D $tool;=20 +$get_maintainer =3D~ s/add_maintainers/get_maintainer/;=20 + +print $get_maintainer."\n"; + my $usage =3D <