mirror of
				https://source.denx.de/u-boot/u-boot.git
				synced 2025-10-31 16:31:25 +01:00 
			
		
		
		
	ld --version | scripts/ld-version.sh
fails with
awk: scripts/ld-version.sh:
line 4: regular expression compile failed (missing '(')
.*)
So let's refresh the script from Linux kernel v4.14-rc8.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
		
	
			
		
			
				
	
	
		
			12 lines
		
	
	
		
			269 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			269 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/awk -f
 | |
| # SPDX-License-Identifier: GPL-2.0
 | |
| # extract linker version number from stdin and turn into single number
 | |
| 	{
 | |
| 	gsub(".*\\)", "");
 | |
| 	gsub(".*version ", "");
 | |
| 	gsub("-.*", "");
 | |
| 	split($1,a, ".");
 | |
| 	print a[1]*100000000 + a[2]*1000000 + a[3]*10000;
 | |
| 	exit
 | |
| 	}
 |