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
247 247
248exuberant()248exuberant()
249{249{
250 CTAGS_EXTRA="extra"
251 if $1 --version 2>&1 | grep -iq universal; then
252 CTAGS_EXTRA="extras"
253 fi
250 setup_regex exuberant asm c254 setup_regex exuberant asm c
251 all_target_sources | xargs $1 -a \255 all_target_sources | xargs $1 -a \
252 -I __initdata,__exitdata,__initconst,__ro_after_init \256 -I __initdata,__exitdata,__initconst,__ro_after_init \
@@ -261,7 +265,7 @@ exuberant() · 8 unmodified lines
261 -I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL,ACPI_EXPORT_SYMBOL \265 -I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL,ACPI_EXPORT_SYMBOL \
262 -I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \266 -I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \
263 -I static,const \267 -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 \
265 "${regex[@]}"269 "${regex[@]}"
266 270
267 setup_regex exuberant kconfig271 setup_regex exuberant kconfig