From nobody Fri May 3 06:51:44 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=1565889863; cv=none; d=zoho.com; s=zohoarc; b=TbGiz227WkNje080sf9KfWoDAKkb2VOZnGcED/STEfJCONBNNRinCptoPuIZG0X+4HKyR5uyLEPiSLsz4ptKP332zD/1hmVWl1k6zDmMi0HQ3X2GuUhkI5XcUAPngBWEGMofE0fHsin0XVZE9nKqHoo1w9EB2w0tb9E0MsKPnjk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565889863; 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=NOm+UtgWgXUx8BY2XCoR+z3HkUv0aQNzDWu84Ha1qsc=; b=ffNIB5IWzkmxPUSPTiiGxGmaMIQ5PcfV8gtAjq1Tdh5nA1SYwIwHkoWlKJbkK20LP6SAT8RpPr+2wHdcwHzigpUYauyKwYmyYsfFwWKtC/c2J07eFmpZ93aiIuJikOZJJUc5HBx3Ws2SQpMAb3OF61XTT3BFX4TeiK/R3WhoR34= 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 1565889863294822.6010011203815; Thu, 15 Aug 2019 10:24:23 -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 1hyJSt-000678-9g; Thu, 15 Aug 2019 17:23:07 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hyJSs-000673-AJ for xen-devel@lists.xenproject.org; Thu, 15 Aug 2019 17:23:06 +0000 Received: from mail.xenproject.org (unknown [104.130.215.37]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 57ba8410-bf81-11e9-a661-bc764e2007e4; Thu, 15 Aug 2019 17:23:05 +0000 (UTC) Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hyJSq-0004HF-Bs; Thu, 15 Aug 2019 17:23:04 +0000 Received: from localhost ([127.0.0.1] helo=UNKNOWN.Home) by xenbits.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hyJSq-000803-4Y; Thu, 15 Aug 2019 17:23:04 +0000 X-Inumbo-ID: 57ba8410-bf81-11e9-a661-bc764e2007e4 From: Lars Kurth To: xen-devel@lists.xenproject.org Date: Thu, 15 Aug 2019 18:22:56 +0100 Message-Id: <20190815172256.34363-1-lars.kurth@citrix.com> X-Mailer: git-send-email 2.13.0 Subject: [Xen-devel] [PATCH v2] 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 | 4 ++-- scripts/get_maintainer.pl | 13 +++++++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/scripts/add_maintainers.pl b/scripts/add_maintainers.pl index 09e9f6609f..5a6d0f631b 100755 --- a/scripts/add_maintainers.pl +++ b/scripts/add_maintainers.pl @@ -26,9 +26,9 @@ sub insert ($$$$); sub hastag ($$); =20 # Tool Variables -my $get_maintainer =3D "./scripts/get_maintainer.pl"; - my $tool =3D $0; +my $get_maintainer =3D $tool; +$get_maintainer =3D~ s/add_maintainers/get_maintainer/; my $usage =3D <