diff options
| -rwxr-xr-x | scripts/tags.sh | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/scripts/tags.sh b/scripts/tags.sh index 868b4c8fc25f..8509bb512935 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh | |||
| @@ -18,6 +18,8 @@ ignore="( -name SCCS -o -name BitKeeper -o -name .svn -o \ | |||
| 18 | -prune -o" | 18 | -prune -o" |
| 19 | 19 | ||
| 20 | # Do not use full path if we do not use O=.. builds | 20 | # Do not use full path if we do not use O=.. builds |
| 21 | # Use make O=. {tags|cscope} | ||
| 22 | # to force full paths for a non-O= build | ||
| 21 | if [ "${KBUILD_SRC}" = "" ]; then | 23 | if [ "${KBUILD_SRC}" = "" ]; then |
| 22 | tree= | 24 | tree= |
| 23 | else | 25 | else |
| @@ -108,13 +110,7 @@ all_defconfigs() | |||
| 108 | 110 | ||
| 109 | docscope() | 111 | docscope() |
| 110 | { | 112 | { |
| 111 | # always use absolute paths for cscope, as recommended by cscope | 113 | (echo \-k; echo \-q; all_sources) > cscope.files |
| 112 | # upstream | ||
| 113 | case "$tree" in | ||
| 114 | /*) ;; | ||
| 115 | *) tree=$PWD/$tree ;; | ||
| 116 | esac | ||
| 117 | (cd /; echo \-k; echo \-q; all_sources) > cscope.files | ||
| 118 | cscope -b -f cscope.out | 114 | cscope -b -f cscope.out |
| 119 | } | 115 | } |
| 120 | 116 | ||
