mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	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. Signed-off-by: Philip K. Gisslow <ripxorip@gmail.com> Link: https://lore.kernel.org/r/20210905073133.21910-1-ripxorip@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
		
							parent
							
								
									aee1bbf66b
								
							
						
					
					
						commit
						d06246ebd7
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -247,6 +247,10 @@ setup_regex()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exuberant()
 | 
					exuberant()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
						CTAGS_EXTRA="extra"
 | 
				
			||||||
 | 
						if $1 --version 2>&1 | grep -iq universal; then
 | 
				
			||||||
 | 
						    CTAGS_EXTRA="extras"
 | 
				
			||||||
 | 
						fi
 | 
				
			||||||
	setup_regex exuberant asm c
 | 
						setup_regex exuberant asm c
 | 
				
			||||||
	all_target_sources | xargs $1 -a                        \
 | 
						all_target_sources | xargs $1 -a                        \
 | 
				
			||||||
	-I __initdata,__exitdata,__initconst,__ro_after_init	\
 | 
						-I __initdata,__exitdata,__initconst,__ro_after_init	\
 | 
				
			||||||
| 
						 | 
					@ -261,7 +265,7 @@ exuberant()
 | 
				
			||||||
	-I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL,ACPI_EXPORT_SYMBOL   \
 | 
						-I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL,ACPI_EXPORT_SYMBOL   \
 | 
				
			||||||
	-I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \
 | 
						-I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \
 | 
				
			||||||
	-I static,const						\
 | 
						-I static,const						\
 | 
				
			||||||
	--extra=+fq --c-kinds=+px --fields=+iaS --langmap=c:+.h \
 | 
						--$CTAGS_EXTRA=+fq --c-kinds=+px --fields=+iaS --langmap=c:+.h \
 | 
				
			||||||
	"${regex[@]}"
 | 
						"${regex[@]}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	setup_regex exuberant kconfig
 | 
						setup_regex exuberant kconfig
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue