From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755437AbYIOPfp (ORCPT ); Mon, 15 Sep 2008 11:35:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754083AbYIOPfh (ORCPT ); Mon, 15 Sep 2008 11:35:37 -0400 Received: from agminet01.oracle.com ([141.146.126.228]:43477 "EHLO agminet01.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753777AbYIOPfg (ORCPT ); Mon, 15 Sep 2008 11:35:36 -0400 Date: Mon, 15 Sep 2008 08:34:07 -0700 From: Randy Dunlap To: Eduard - Gabriel Munteanu Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Uwe.Kleine-Koenig@digi.com, daniel@danielguilak.com, den@openvz.org, efault@gmx.de, etienne_lorrain@yahoo.fr, sam@ravnborg.org, tglx@linutronix.de, willy@linux.intel.com Subject: Re: [RFC PATCH] Script for generating Documentation/dontdiff from .gitignore files. Message-Id: <20080915083407.3fd8e9b7.randy.dunlap@oracle.com> In-Reply-To: <1221416637-6259-1-git-send-email-eduard.munteanu@linux360.ro> References: <1221416637-6259-1-git-send-email-eduard.munteanu@linux360.ro> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.5.0 (GTK+ 2.12.0; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 14 Sep 2008 21:23:57 +0300 Eduard - Gabriel Munteanu wrote: > .gitignore files get more testing than Documentation/dontdiff, since most > developers follow Git workflow when sending patches. The latter tends to > stay outdated and needs to be synchronized every now and then. This patch > provides a script that scans all .gitignore files and generates a > Documentation/dontdiff to stdout. > > Signed-off-by: Eduard - Gabriel Munteanu Hi, You probably missed (& should read) this thread: http://lkml.org/lkml/2008/9/12/154 > --- > scripts/gen_dontdiff.sh | 21 +++++++++++++++++++++ > 1 files changed, 21 insertions(+), 0 deletions(-) > create mode 100755 scripts/gen_dontdiff.sh > > diff --git a/scripts/gen_dontdiff.sh b/scripts/gen_dontdiff.sh > new file mode 100755 > index 0000000..cd94747 > --- /dev/null > +++ b/scripts/gen_dontdiff.sh > @@ -0,0 +1,21 @@ > +#!/bin/bash > + > +# Copyright (C) 2008 Eduard - Gabriel Munteanu > +# > +# This file is released under GPL version 2. > + > +echo "### Generated by gen_dontdiff.sh ###" > + > +grep -Ev "^([[:space:]]*[[#]]*|$)" .gitignore > + > +find . -mindepth 2 -name .gitignore | sed -e "s/^\.\///g" | while read FILE > +do > + CURR_DIR=`echo "$FILE" | sed -e "s/\.gitignore$//g"` > + echo "# $FILE" > + grep -Ev "^([[:space:]]*[[#]]*|$)" $FILE | while read LINE > + do > + echo $CURR_DIR$LINE > + done > + echo "" > +done > + > -- --- ~Randy Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA http://linuxplumbersconf.org/