2017-07-27 20:48:49 +02:00
|
|
|
BEGIN {
|
2019-03-09 23:35:06 +01:00
|
|
|
print "--[["
|
|
|
|
print "These are Proxmark command definitions."
|
2019-04-30 21:10:11 +02:00
|
|
|
print "This file is automatically generated from pm3_cmd.h - DON'T EDIT MANUALLY."
|
2019-03-09 23:35:06 +01:00
|
|
|
print "--]]"
|
|
|
|
print "local __commands = {"
|
2017-07-27 20:48:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#$1 ~ /#define/ && $2 ~ /^CMD_([[:alnum:]_])+/ { print $2, "=", $3, "," }
|
|
|
|
$1 ~ /#define/ && $2 ~ /^CMD_[A-Za-z0-9_]+/ { sub(/\r/, ""); print $2, "=", $3 "," }
|
|
|
|
|
|
|
|
END {
|
2019-03-09 23:35:06 +01:00
|
|
|
print "}"
|
|
|
|
print "return __commands"
|
2017-07-27 20:48:49 +02:00
|
|
|
}
|