mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
cscope: ignore symbolic linked files
When it is run, cscope complains about files it cannot find: cscope: cannot find file test/zdtm/live/streaming/socket-tcp.c cscope: cannot find file test/zdtm/live/streaming/socket-tcp6.c cscope: cannot find file test/zdtm/live/static/socket-tcpbuf-local.c cscope: cannot find file test/zdtm/live/static/mntns_shared_bind02.c cscope: cannot find file test/zdtm/live/static/socket_listen6.c cscope: cannot find file test/zdtm/live/static/socket-tcp6.c cscope: cannot find file test/zdtm/live/static/socket-tcpbuf6.c cscope: cannot find file test/zdtm/live/static/mntns_link_ghost.c cscope: cannot find file test/zdtm/live/transition/fork2.c These files are relative symbolic links, and since cscope is run at the top directory, the ../* links are not valid. This patch removes the symbolic links from the list of scanned files. This is not removing any tags since the real file are still scanned. In addition, the test directory is not taken in account. Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
3ea2fd78eb
commit
fac0e2d11b
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -267,11 +267,11 @@ distclean: clean
|
|||
tags:
|
||||
$(E) " GEN " $@
|
||||
$(Q) $(RM) tags
|
||||
$(Q) $(FIND) . -name '*.[hcS]' ! -path './.*' -print | xargs ctags -a
|
||||
$(Q) $(FIND) . -name '*.[hcS]' ! -path './.*' ! -path './test/*' -print | xargs ctags -a
|
||||
|
||||
cscope:
|
||||
$(E) " GEN " $@
|
||||
$(Q) $(FIND) . -name '*.[hcS]' ! -path './.*' -print > cscope.files
|
||||
$(Q) $(FIND) . -name '*.[hcS]' ! -path './.*' ! -path './test/*' ! -type l -print > cscope.files
|
||||
$(Q) $(CSCOPE) -bkqu
|
||||
|
||||
docs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue