Distros such as Fedora and Arch are using the maintained universal-ctags implementation. This version has replaced the obsolete --extra flag with --extras.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -247,6 +247,10 @@ setup_regex() · 246 unmodified lines | ||
| 247 | 247 | |
| 248 | 248 | exuberant() |
| 249 | 249 | { |
| 250 | + CTAGS_EXTRA="extra" | |
| 251 | + if $1 --version 2>&1 | grep -iq universal; then | |
| 252 | + CTAGS_EXTRA="extras" | |
| 253 | + fi | |
| 250 | 254 | setup_regex exuberant asm c |
| 251 | 255 | all_target_sources | xargs $1 -a \ |
| 252 | 256 | -I __initdata,__exitdata,__initconst,__ro_after_init \ |
| @@ -261,7 +265,7 @@ exuberant() · 8 unmodified lines | ||
| 261 | 265 | -I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL,ACPI_EXPORT_SYMBOL \ |
| 262 | 266 | -I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \ |
| 263 | 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 | 269 | "${regex[@]}" |
| 266 | 270 | |
| 267 | 271 | setup_regex exuberant kconfig |