From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8384 invoked by alias); 15 Jun 2011 16:39:34 -0000 Received: (qmail 8151 invoked by uid 22791); 15 Jun 2011 16:39:31 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Jun 2011 16:39:04 +0000 Received: (qmail 22416 invoked from network); 15 Jun 2011 16:39:03 -0000 Received: from unknown (HELO scottsdale.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 15 Jun 2011 16:39:03 -0000 From: Pedro Alves To: gdb@sourceware.org, pmuldoon@redhat.com Subject: Re: ARI/Commit rules Date: Wed, 15 Jun 2011 16:39:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-8-generic; KDE/4.6.2; x86_64; ; ) Cc: Joel Brobecker References: <20110615152451.GN5944@adacore.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201106151738.59715.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-06/txt/msg00108.txt.bz2 On Wednesday 15 June 2011 16:37:02, Phil Muldoon wrote: > Joel Brobecker writes: > > > I think it would be nice to be able to run this script by hand > > from a checkout, and it shouldn't be too difficult, since it's > > mostly an awk script. And for those that use git, we could > > produce a hook as well, I think. We might have some issues > > with volume (number of warnings due to the already-present > > violations) though, or perhaps performance. I don't know about > > others, but since using git, I have been so spoiled that I expect > > every operation to be instantaneous... > > It would be nice to fix those warnings eventually. I believe a pre-commit > hook would only operate on your diffs, though. Anyway we cannot use > that as the GIT repository is read only. So to me, an ideal thing > would be just to run it on my files that I have changed, or even better > a patch I have generated. You can download the script from the ARI page: . Here's a direct link: . Something like `ls *.[hc] | xargs gdb_ari.sh` should work. I actually don't know how to get to the repository where the script is hosted, and where to get the script that is invoking the gdb_ari.sh. I'm guessing its home is at the same place the webpages are, and perhaps the logic of which files to run the ari script on are only in some cron script somewhere? > > What do you think? > > Cheers > > Phil > -- Pedro Alves