diff options
| author | Jianbin Kang <kjbmail@gmail.com> | 2011-01-14 07:07:05 -0500 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2011-01-14 18:48:16 -0500 |
| commit | f4ed1009fcea8502d1191ef3e435e9d83c286b80 (patch) | |
| tree | 072b7f35d76880978b842b12eae1b9b7d4984a6a /scripts | |
| parent | 38b3439d84f4a310bd29e3dbc21dffe9119ef157 (diff) | |
kbuild: add GNU GLOBAL tags generation
GNU GLOBAL (http://www.gnu.org/software/global/) is a source code tagging system
It is really cheap to support it in kbuild system.
Signed-off-by: Jianbin Kang <kjbmail@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/tags.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/tags.sh b/scripts/tags.sh index e091db312ddb..5d17c71a8161 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh | |||
| @@ -114,6 +114,11 @@ docscope() | |||
| 114 | cscope -b -f cscope.out | 114 | cscope -b -f cscope.out |
| 115 | } | 115 | } |
| 116 | 116 | ||
| 117 | dogtags() | ||
| 118 | { | ||
| 119 | all_sources | gtags -f - | ||
| 120 | } | ||
| 121 | |||
| 117 | exuberant() | 122 | exuberant() |
| 118 | { | 123 | { |
| 119 | all_sources | xargs $1 -a \ | 124 | all_sources | xargs $1 -a \ |
| @@ -185,6 +190,10 @@ case "$1" in | |||
| 185 | docscope | 190 | docscope |
| 186 | ;; | 191 | ;; |
| 187 | 192 | ||
| 193 | "gtags") | ||
| 194 | dogtags | ||
| 195 | ;; | ||
| 196 | |||
| 188 | "tags") | 197 | "tags") |
| 189 | rm -f tags | 198 | rm -f tags |
| 190 | xtags ctags | 199 | xtags ctags |
