lkml.org 
[lkml]   [2002]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[BK][PATCH] Fix tags rules
Date
When using Bitkeeper, having all sorts of SCCS directories lying around 
breaks the rules that generate tag tables for use by vi, emacs and friends.
The following patch fixes the rules to ignore SCCS directories.

I have tested the generated TAGS file in XEmacs. I have not tested the tags
rule with any vi clones. The output is the same with my new rule and the old
rule so I'm making a wild presumption it is doing the same thing. vi users,
please let me know if I messed up the tags rule.

Makefile | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
--
akk~

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.525 -> 1.526
# Makefile 1.182 -> 1.183
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/03/18 akeys@mail.smu.edu 1.526
# Fixed tag rules to ignore SCCS directories.
# --------------------------------------------
#
diff -Nru a/Makefile b/Makefile
--- a/Makefile Mon Mar 18 12:13:17 2002
+++ b/Makefile Mon Mar 18 12:13:17 2002
@@ -355,16 +355,16 @@
$(MAKE) CFLAGS="$(CFLAGS) $(CFLAGS_KERNEL)" $(subst $@, _dir_$@, $@)

TAGS: dummy
- etags `find include/asm-$(ARCH) -name '*.h'`
- find include -type d \( -name "asm-*" -o -name config \) -prune -o -name
'*.h' -print | xargs etags -a
- find $(SUBDIRS) init -name '*.[ch]' | xargs etags -a
+ find include/asm-$(ARCH) -path 'include/asm-$(ARCH)/SCCS' -prune -o -name
'*.h' -print | xargs etags
+ find include -path '*/SCCS' -prune -o -type d \( -name "asm-*" -o -name
config \) -prune -o -name '*.h' -print | xargs etags -a
+ find $(SUBDIRS) init -path '*/SCCS' -prune -not -type d -o -name *.[ch] |
xargs etags -a

# Exuberant ctags works better with -I
tags: dummy
- CTAGSF=`ctags --version | grep -i exuberant >/dev/null && echo "-I
__initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_NOVERS"`; \
- ctags $$CTAGSF `find include/asm-$(ARCH) -name '*.h'` && \
- find include -type d \( -name "asm-*" -o -name config \) -prune -o -name
'*.h' -print | xargs ctags $$CTAGSF -a && \
- find $(SUBDIRS) init -name '*.[ch]' | xargs ctags $$CTAGSF -a
+ CTAGSF=`ctags --version | grep -i exuberant >/dev/null && echo "-I
__initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_NOVERS"`;
+ find include/asm-$(ARCH) -path 'include/asm-$(ARCH)/SCCS' -prune -o -name
'*.h' | xargs ctags $$CTAGSF
+ find include -path '*/SCCS' -prune -o -type d \( -name "asm-*" -o -name
config \) -prune -o -name '*.h' -print | xargs ctags $$CTAGSF -a
+ find $(SUBDIRS) init -path '*/SCCS' -prune -not -type d -o -name '*.[ch]' |
xargs ctags $$CTAGSF -a

ifdef CONFIG_MODULES
ifdef CONFIG_MODVERSIONS
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.029 / U:2.748 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site