mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
part of monstermerge...
This commit is contained in:
parent
8f262aa1bf
commit
6519ae6f88
373 changed files with 4275 additions and 0 deletions
15
client/usb_cmd_h2lua.awk
Normal file
15
client/usb_cmd_h2lua.awk
Normal file
|
@ -0,0 +1,15 @@
|
|||
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"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue