From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:49476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWvLL-00037k-1r for qemu-devel@nongnu.org; Wed, 15 Jun 2011 15:01:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWvLI-0003e0-Qy for qemu-devel@nongnu.org; Wed, 15 Jun 2011 15:01:34 -0400 Received: from mail-qw0-f45.google.com ([209.85.216.45]:62192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWvLI-0003dm-IZ for qemu-devel@nongnu.org; Wed, 15 Jun 2011 15:01:32 -0400 Received: by qwj8 with SMTP id 8so417485qwj.4 for ; Wed, 15 Jun 2011 12:01:31 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <80f46dacf63dc2c2cd363f37a45e42edde1549c0.1308073076.git.mst@redhat.com> References: <80f46dacf63dc2c2cd363f37a45e42edde1549c0.1308073076.git.mst@redhat.com> From: Blue Swirl Date: Wed, 15 Jun 2011 22:01:10 +0300 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 2/2] get_maintainer: update to match qemu tree List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org On Tue, Jun 14, 2011 at 8:38 PM, Michael S. Tsirkin wrote: > Signed-off-by: Michael S. Tsirkin > --- > =C2=A0scripts/get_maintainer.pl | =C2=A0 29 +++++++---------------------- > =C2=A01 files changed, 7 insertions(+), 22 deletions(-) > > diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl > index d29a8d7..c52ae59 100755 > --- a/scripts/get_maintainer.pl > +++ b/scripts/get_maintainer.pl > @@ -258,9 +258,9 @@ if ($email && > =C2=A0 =C2=A0 die "$P: Please select at least 1 email option\n"; > =C2=A0} > > -if (!top_of_kernel_tree($lk_path)) { > +if (!top_of_tree($lk_path)) { > =C2=A0 =C2=A0 die "$P: The current directory does not appear to be " > - =C2=A0 =C2=A0 =C2=A0 . "a linux kernel source tree.\n"; > + =C2=A0 =C2=A0 =C2=A0 . "a qemu source tree.\n"; QEMU > =C2=A0} > > =C2=A0## Read MAINTAINERS for type/value pairs > @@ -792,7 +792,7 @@ Notes: > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --git-min-signatures, --git-max-mainta= iners, --git-min-percent, and > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --git-blame > =C2=A0 =C2=A0 =C2=A0 Use --hg-since not --git-since to control date selec= tion > - =C2=A0File ".get_maintainer.conf", if it exists in the linux kernel sou= rce root > + =C2=A0File ".get_maintainer.conf", if it exists in the qemu source root QEMU > =C2=A0 =C2=A0 =C2=A0 directory, can change whatever get_maintainer defaul= ts are desired. > =C2=A0 =C2=A0 =C2=A0 Entries in this file can be any command line argumen= t. > =C2=A0 =C2=A0 =C2=A0 This file is prepended to any additional command lin= e arguments. > @@ -800,28 +800,13 @@ Notes: > =C2=A0EOT > =C2=A0} > > -sub top_of_kernel_tree { > +sub top_of_tree { > =C2=A0 =C2=A0 my ($lk_path) =3D @_; > > =C2=A0 =C2=A0 if ($lk_path ne "" && substr($lk_path,length($lk_path)-1,1)= ne "/") { > =C2=A0 =C2=A0 =C2=A0 =C2=A0$lk_path .=3D "/"; > =C2=A0 =C2=A0 } > - =C2=A0 =C2=A0if ( =C2=A0 (-f "${lk_path}COPYING") > - =C2=A0 =C2=A0 =C2=A0 && (-f "${lk_path}CREDITS") > - =C2=A0 =C2=A0 =C2=A0 && (-f "${lk_path}Kbuild") > - =C2=A0 =C2=A0 =C2=A0 && (-f "${lk_path}MAINTAINERS") > - =C2=A0 =C2=A0 =C2=A0 && (-f "${lk_path}Makefile") > - =C2=A0 =C2=A0 =C2=A0 && (-f "${lk_path}README") > - =C2=A0 =C2=A0 =C2=A0 && (-d "${lk_path}Documentation") > - =C2=A0 =C2=A0 =C2=A0 && (-d "${lk_path}arch") > - =C2=A0 =C2=A0 =C2=A0 && (-d "${lk_path}include") > - =C2=A0 =C2=A0 =C2=A0 && (-d "${lk_path}drivers") > - =C2=A0 =C2=A0 =C2=A0 && (-d "${lk_path}fs") > - =C2=A0 =C2=A0 =C2=A0 && (-d "${lk_path}init") > - =C2=A0 =C2=A0 =C2=A0 && (-d "${lk_path}ipc") > - =C2=A0 =C2=A0 =C2=A0 && (-d "${lk_path}kernel") > - =C2=A0 =C2=A0 =C2=A0 && (-d "${lk_path}lib") > - =C2=A0 =C2=A0 =C2=A0 && (-d "${lk_path}scripts")) { > + =C2=A0 =C2=A0if (-f "${lk_path}MAINTAINERS") { The similar check in scripts/checkpatch.pl uses "COPYING", "MAINTAINERS", "Makefile", "README", "docs", "VERSION", and "vl.c". Please match that. > =C2=A0 =C2=A0 =C2=A0 =C2=A0return 1; > =C2=A0 =C2=A0 } > =C2=A0 =C2=A0 return 0; > @@ -1387,8 +1372,8 @@ sub vcs_exists { > =C2=A0 =C2=A0 if (!$printed_novcs) { > =C2=A0 =C2=A0 =C2=A0 =C2=A0warn("$P: No supported VCS found. =C2=A0Add --= nogit to options?\n"); > =C2=A0 =C2=A0 =C2=A0 =C2=A0warn("Using a git repository produces better r= esults.\n"); > - =C2=A0 =C2=A0 =C2=A0 warn("Try Linus Torvalds' latest git repository us= ing:\n"); > - =C2=A0 =C2=A0 =C2=A0 warn("git clone git://git.kernel.org/pub/scm/linux= /kernel/git/torvalds/linux-2.6.git\n"); > + =C2=A0 =C2=A0 =C2=A0 warn("Try latest git repository using:\n"); > + =C2=A0 =C2=A0 =C2=A0 warn("git clone git://git.qemu.org/qemu.git\n"); > =C2=A0 =C2=A0 =C2=A0 =C2=A0$printed_novcs =3D 1; > =C2=A0 =C2=A0 } > =C2=A0 =C2=A0 return 0; > -- > 1.7.5.53.gc233e > >