lkml.org 
[lkml]   [1999]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] TAGS target for Makefile
From
Date
Thomas Capricelli <capricel@yalbi.com> writes:

|> patch against 2.2.13
|> --- Makefile-2.2.13 Wed Nov 24 19:59:54 1999
|> +++ Makefile Wed Nov 24 20:00:34 1999
|> @@ -303,6 +303,16 @@
|> fs lib mm ipc kernel drivers net: dummy
|> $(MAKE) $(subst $@, _dir_$@, $@)
|>
|> +tags: dummy
|> + ctags `find include/asm-$(ARCH) -name '*.h'`
|> + for d in `ls include/. | egrep -v '^(asm|config)'`; do find include/$$d -name '*.h' | xargs ctags -a; done

You can optimize this a bit by moving the xargs command outside the loop.
Or just remove the loop at all:

find include -type d \( -name "asm-*" -o -name config \) -prune -o -name '*.h' -print | xargs ctags -a

Andreas.

--
Andreas Schwab "And now for something
SuSE Labs completely different."
schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg

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

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