From nobody Mon Feb 9 13:39:36 2026 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=1565952272; cv=none; d=zoho.com; s=zohoarc; b=erf7m0DOylZLFIxRmZyRCYZecXlN1Fg1GoQq1TCKzwqqvB/heYp35YVThFGTylYzc0RpL2Pf6QUjFf0jTFt1UU7XOWZS7gR63oW9jOzPLxRL5xElZ59b+bc9DxJh2kL3hw39Zu0rUx1dGqLEbOkW5uD8inxpraHtW0AvNqDAXf8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565952272; 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=u0+nGXqw+7Ru4GNoFockbNGCM2DGn8ytsrQ4DKd+yHA=; b=HmDf1M0FxSS+y5kQwpnllxCNElRhaXKBdJldb+NwXtPjKBZITgocXlwxyrUNgkUBbKrcd/YbXxiHOO8xEtEihX8fYSXO2Wwv9CvNstF7sg00TbLqp4Yy0FCjeEZdXX/jRTPr9bgJ/nbEhjy26nQ3NajNfrLMsf7prBSXg2pqgj0= 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 1565952272391139.5000858339904; Fri, 16 Aug 2019 03:44:32 -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 1hyZhE-0000M9-Ai; Fri, 16 Aug 2019 10:43:00 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hyZhC-0000M4-On for xen-devel@lists.xenproject.org; Fri, 16 Aug 2019 10:42:58 +0000 Received: from mail.xenproject.org (unknown [104.130.215.37]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 9b1192d0-c012-11e9-8bb4-12813bfff9fa; Fri, 16 Aug 2019 10:42:55 +0000 (UTC) Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hyZh6-0001Jb-GT; Fri, 16 Aug 2019 10:42:52 +0000 Received: from localhost ([127.0.0.1] helo=MacBook-Pro.Home) by xenbits.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hyZh6-0007vB-8x; Fri, 16 Aug 2019 10:42:52 +0000 X-Inumbo-ID: 9b1192d0-c012-11e9-8bb4-12813bfff9fa From: Lars Kurth To: xen-devel@lists.xenproject.org Date: Fri, 16 Aug 2019 11:42:48 +0100 Message-Id: <4b535bb616f62ad685fef0f06d3b5138b1539688.1565951950.git.lars.kurth@citrix.com> X-Mailer: git-send-email 2.13.0 Subject: [Xen-devel] [PATCH] get_maintainers.pl: Enable running the script on unikraft repos 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: Felipe Huici , Lars Kurth , Stefano Stabellini , Wei Liu , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Florian Schmidt , Julien Grall , Jan Beulich , Simon Kuenzer 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" Unikraft repos follow the same syntax as xen.git with the following exceptions: * MAINTAINERS files are called MAINTAINERS.md * M: ... etc blocks are preceded by whitespaces for rendering as markup files This change will - load MAINTAINERS.md if MAINTAINERS is not present - deal with indented M: ... blocks Signed-off-by: Lars Kurth --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Julien Grall Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu CC: Simon Kuenzer CC: Florian Schmidt CC: Felipe Huici --- scripts/get_maintainer.pl | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index f1e9c904ee..bdb09f8f65 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -284,12 +284,18 @@ if (!top_of_tree($xen_path)) { my @typevalue =3D (); my %keyword_hash; =20 -open (my $maint, '<', "${xen_path}MAINTAINERS") - or die "$P: Can't open MAINTAINERS: $!\n"; +my $maint; +my $maintainers_file =3D "MAINTAINERS"; +if (! open ($maint, '<', ${xen_path}.$maintainers_file)) { + $maintainers_file =3D "MAINTAINERS.md"; + open ($maint, '<', ${xen_path}.$maintainers_file) + or die "$P: Can't open MAINTAINERS or MAINTAINERS.md: $!\n"; +} + while (<$maint>) { my $line =3D $_; =20 - if ($line =3D~ m/^([A-Z]):\s*(.*)/) { + if ($line =3D~ m/^\s*([A-Z]):\s*(.*)/) { my $type =3D $1; my $value =3D $2; =20 @@ -421,7 +427,7 @@ foreach my $file (@ARGV) { } if ($from_filename) { push(@files, $file); - if ($file ne "MAINTAINERS" && -f $file && ($keywords || $file_emails)) { + if ($file ne $maintainers_file && -f $file && ($keywords || $file_emails)= ) { open(my $f, '<', $file) or die "$P: Can't open $file: $!\n"; my $text =3D do { local($/) ; <$f> }; --=20 2.13.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel