You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	configure: simplify get_version() function
awk alone can do this, no need for grep. Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
		
							
								
								
									
										2
									
								
								configure
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								configure
									
									
									
									
										vendored
									
									
								
							| @@ -3774,7 +3774,7 @@ get_version(){ | ||||
|     lcname=$1 | ||||
|     name=$(toupper $lcname) | ||||
|     file=$source_path/$lcname/version.h | ||||
|     eval $(grep "#define ${name}_VERSION_M" "$file" | awk '{ print $2"="$3 }') | ||||
|     eval $(awk "/#define ${name}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file") | ||||
|     eval ${name}_VERSION=\$${name}_VERSION_MAJOR.\$${name}_VERSION_MINOR.\$${name}_VERSION_MICRO | ||||
|     eval echo "${lcname}_VERSION=\$${name}_VERSION" >> config.mak | ||||
|     eval echo "${lcname}_VERSION_MAJOR=\$${name}_VERSION_MAJOR" >> config.mak | ||||
|   | ||||
		Reference in New Issue
	
	Block a user