linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BK][PATCH] Fix tags rules
@ 2002-03-18 18:23 Adam Keys
  0 siblings, 0 replies; only message in thread
From: Adam Keys @ 2002-03-18 18:23 UTC (permalink / raw)
  To: linux-kernel

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-03-18 18:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-18 18:23 [BK][PATCH] Fix tags rules Adam Keys

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).