History

scripts/tags.sh: Fix obsolete parameter for ctags

Distros such as Fedora and Arch are using the maintained universal-ctags implementation. This version has replaced the obsolete --extra flag with --extras.

Philip K. Gisslow committed 5 years ago

Commit d06246e1 parent aee1bbf1 file · +5 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/tags.sh+5−1
@@ -247,6 +247,10 @@ setup_regex() · 246 unmodified lines
247247
248248 exuberant()
249249 {
250+ CTAGS_EXTRA="extra"
251+ if $1 --version 2>&1 | grep -iq universal; then
252+ CTAGS_EXTRA="extras"
253+ fi
250254 setup_regex exuberant asm c
251255 all_target_sources | xargs $1 -a \
252256 -I __initdata,__exitdata,__initconst,__ro_after_init \
@@ -261,7 +265,7 @@ exuberant() · 8 unmodified lines
261265 -I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL,ACPI_EXPORT_SYMBOL \
262266 -I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \
263267 -I static,const \
264− --extra=+fq --c-kinds=+px --fields=+iaS --langmap=c:+.h \
268+ --$CTAGS_EXTRA=+fq --c-kinds=+px --fields=+iaS --langmap=c:+.h \
265269 "${regex[@]}"
266270
267271 setup_regex exuberant kconfig