mirror of
				https://github.com/RfidResearchGroup/proxmark3.git
				synced 2025-10-25 21:46:35 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			408 B
		
	
	
	
		
			Awk
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			408 B
		
	
	
	
		
			Awk
		
	
	
	
	
	
| BEGIN {
 | |
| 	print "--[["
 | |
| 	print "These are Proxmark command definitions."
 | |
| 	print "This file is automatically generated from usb_cmd.h - DON'T EDIT MANUALLY."
 | |
| 	print "--]]"
 | |
| 	print "local __commands = {"
 | |
| }
 | |
| 
 | |
| #$1 ~ /#define/ && $2 ~ /^CMD_([[:alnum:]_])+/ { print $2, "=", $3, "," }
 | |
| $1 ~ /#define/ && $2 ~ /^CMD_[A-Za-z0-9_]+/ { sub(/\r/, ""); print $2, "=", $3 "," }
 | |
| 
 | |
| END {
 | |
| 	print "}"
 | |
| 	print "return __commands"
 | |
| }
 |