From patchwork Wed Apr 22 03:38:23 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Kraai X-Patchwork-Id: 19310 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3M4Iox1032238 for ; Wed, 22 Apr 2009 04:18:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750963AbZDVESX (ORCPT ); Wed, 22 Apr 2009 00:18:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750946AbZDVESX (ORCPT ); Wed, 22 Apr 2009 00:18:23 -0400 Received: from neon.ftbfs.org ([83.168.236.214]:47988 "EHLO neon.ftbfs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750751AbZDVESW (ORCPT ); Wed, 22 Apr 2009 00:18:22 -0400 X-Greylist: delayed 2092 seconds by postgrey-1.27 at vger.kernel.org; Wed, 22 Apr 2009 00:18:22 EDT Received: from pool-71-119-193-199.lsanca.dsl-w.verizon.net ([71.119.193.199] helo=macbookpro) by neon.ftbfs.org with esmtpa (Exim 4.69) (envelope-from ) id 1LwTMo-0000mO-Bm; Tue, 21 Apr 2009 20:43:26 -0700 Received: from kraai by macbookpro with local (Exim 4.69) (envelope-from ) id 1LwTHz-0000uw-LD; Tue, 21 Apr 2009 20:38:23 -0700 From: Matt Kraai To: Sam Ravnborg , linux-kbuild@vger.kernel.org Cc: Matt Kraai Subject: [PATCH] Remove a tag file before it is regenerated Date: Tue, 21 Apr 2009 20:38:23 -0700 Message-Id: <1240371503-2751-1-git-send-email-kraai@ftbfs.org> X-Mailer: git-send-email 1.6.2.3 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org If a tag file is not removed before it is regenerated, the newly generated data is appended to the old, which preserves stale data and makes the tag file grow over time. Signed-off-by: Matt Kraai --- scripts/tags.sh | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/scripts/tags.sh b/scripts/tags.sh index 5bd8b10..4a34ec5 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -164,10 +164,12 @@ case "$1" in ;; "tags") + rm -f tags xtags ctags ;; "TAGS") + rm -f TAGS xtags etags ;; esac