]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] make TAGS to work with bitkeeper
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Apr 2002 06:11:18 +0000 (23:11 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 22 Apr 2002 06:11:18 +0000 (23:11 -0700)
Peter Chubb <peter@chubb.wattle.id.au>: make TAGS to work with bitkeeper:

  If you type, `make TAGS' in the top-level of a kernel tree that's been
  created with bk clone (or if you're using sccs to maintain your own
  copy), then the sccs control files are included in the TAGS file (sccs
  distinguishes its control files with an s. prefix rather than using a
  suffix, so the matches on '*.h' etc pick them up.)

Makefile

index 15094513154378c842ce1c3975240dff59b2f0c7..80d60836b56c5cd1d7955c149e6c32041e2052cc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -347,9 +347,9 @@ fs lib mm ipc kernel drivers net sound: dummy
        $(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} -name '*.h' -print ; \
+       find include -type d \( -name "asm-*" -o -name config \) -prune -o -name '*.h' -print ; \
+       find $(SUBDIRS) init -name '*.[ch]' ; } | grep -v SCCS | etags -
 
 # Exuberant ctags works better with -I
 tags: dummy