From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755399AbYINSYa (ORCPT ); Sun, 14 Sep 2008 14:24:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753517AbYINSYW (ORCPT ); Sun, 14 Sep 2008 14:24:22 -0400 Received: from ti-out-0910.google.com ([209.85.142.190]:34250 "EHLO ti-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753367AbYINSYV (ORCPT ); Sun, 14 Sep 2008 14:24:21 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :sender; b=bxvU2hh3hV8LNudHCDNL5SxOq/Y+KoCBgzpLfqOCBxl9N7nqcUZu07D+UppZXTt5OA 12vw4WkJl6GBYByNciT0doWwLkUIqvDVcj1LKSbVWEtT0d96+N0jnJYeu+MulvVvdhHJ qlfMdFrf9lT+sU760p1HtxkP7eCsgIZoH+b7A= From: Eduard - Gabriel Munteanu To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, mm-commits@vger.kernel.org, randy.dunlap@oracle.com, Uwe.Kleine-Koenig@digi.com, daniel@danielguilak.com, den@openvz.org, eduard.munteanu@linux360.ro, efault@gmx.de, etienne_lorrain@yahoo.fr, sam@ravnborg.org, tglx@linutronix.de, willy@linux.intel.com Subject: [RFC PATCH] Script for generating Documentation/dontdiff from .gitignore files. Date: Sun, 14 Sep 2008 21:23:57 +0300 Message-Id: <1221416637-6259-1-git-send-email-eduard.munteanu@linux360.ro> X-Mailer: git-send-email 1.5.6.1 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org .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 --- 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 + -- 1.5.6.1