scripts/tags.sh: allow to use alternative ctags implementation
authorMasatake YAMATO <yamato@redhat.com>
Thu, 29 May 2025 19:46:33 +0000 (04:46 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 5 Jun 2025 20:40:25 +0000 (05:40 +0900)
Some ctags implementations are available. With this change, You can
specify your favorite one with CTAGS environment variable.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/tags.sh

index 98680e9cd7be30dc8caadb518bafbaac21a515fd..99ce427d9a69d92953554d81816c62664d142615 100755 (executable)
@@ -344,7 +344,7 @@ case "$1" in
 
        "tags")
                rm -f tags
-               xtags ctags
+               xtags ${CTAGS:-ctags}
                remove_structs=y
                ;;