linux-kbuild.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kbuild: specify absolute paths for cscope
@ 2009-11-26 12:34 Daniel Vetter
  2009-11-30 17:13 ` Michal Marek
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Vetter @ 2009-11-26 12:34 UTC (permalink / raw)
  To: linux-kbuild; +Cc: Daniel Vetter

Some tools (like my favourite editor, vim) can't handle relative
paths from cscope as soon as cscope.out is no longer in $PWD. Use
absolute paths when generating cscope.files, which seems to be
the recommended way to generate cscope.out, anyway (at least according
to cscope.sf.net).

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
---
 scripts/tags.sh |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/scripts/tags.sh b/scripts/tags.sh
index d52f7a0..49bffed 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -89,7 +89,9 @@ all_defconfigs()
 
 docscope()
 {
-	(echo \-k; echo \-q; all_sources) > cscope.files
+	# use absolute paths - vim likes it that way
+	tree=$PWD/$tree
+	(cd /; echo \-k; echo \-q; all_sources) > cscope.files
 	cscope -b -f cscope.out
 }
 
-- 
1.6.5.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-12-01 13:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-26 12:34 [PATCH] kbuild: specify absolute paths for cscope Daniel Vetter
2009-11-30 17:13 ` Michal Marek
2009-11-30 18:11   ` Sam Ravnborg
2009-12-01  9:42     ` Daniel Vetter
2009-12-01 13:06       ` Michal Marek

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).