From e86aa24c9acd0d27755d02500663b49f455d5805 Mon Sep 17 00:00:00 2001 From: adilger Date: Tue, 18 Aug 2009 00:37:33 +0000 Subject: [PATCH] Branch HEAD cscope will index directory names, and "find -prune" only prunes entries within the specified sub-directory. Exclude such pathnames entirely. b=19690 --- build/autoMakefile.am.toplevel | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/autoMakefile.am.toplevel b/build/autoMakefile.am.toplevel index a22f85f..beeddc2 100644 --- a/build/autoMakefile.am.toplevel +++ b/build/autoMakefile.am.toplevel @@ -19,19 +19,19 @@ etags: $(RM) $(top_srcdir)/TAGS ETAGSF=`etags --version | grep -iq exuberant && \ echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \ - find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' |xargs etags $$ETAGSF -a + find $(top_srcdir) -name '*.[hc]'|grep -v "\.pc"|xargs etags $$ETAGSF -a ctags: $(RM) $(top_srcdir)/tags CTAGSF=`ctags --version | grep -iq exuberant && \ echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \ - find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' |xargs ctags $$CTAGSF -a + find $(top_srcdir) -name '*.[hc]'|grep -v "\.pc"|xargs ctags $$CTAGSF -a cscope-recursive: cscope: $(RM) $(top_srcdir)/cscope*.out $(top_srcdir)/cscope.files - find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' > cscope.files + find $(top_srcdir) -name '*.[hc]' | grep -v "\.pc" > cscope.files cscope -bRq if MODULES -- 1.8.3.1