kbuild: add GNU GLOBAL tags generation
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / scripts / tags.sh
index e091db312ddb048ecf5eb2057627dc182121b8ab..5d17c71a81613cc8b404da3b1d6de69987d12dff 100755 (executable)
@@ -114,6 +114,11 @@ docscope()
        cscope -b -f cscope.out
 }
 
+dogtags()
+{
+       all_sources | gtags -f -
+}
+
 exuberant()
 {
        all_sources | xargs $1 -a                               \
@@ -185,6 +190,10 @@ case "$1" in
                docscope
                ;;
 
+       "gtags")
+               dogtags
+               ;;
+
        "tags")
                rm -f tags
                xtags ctags