mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
remove tabs
This commit is contained in:
parent
468f59684c
commit
c0eb19acb1
19 changed files with 1480 additions and 1447 deletions
|
@ -1,24 +1,23 @@
|
|||
BEGIN {
|
||||
print "--[["
|
||||
print "These are default_keys dictionary"
|
||||
print "This file is automatically generated from default_keys.h - DON'T EDIT MANUALLY."
|
||||
print "--]]"
|
||||
print "local _keys = {"
|
||||
print "--[["
|
||||
print "These are default_keys dictionary"
|
||||
print "This file is automatically generated from default_keys.h - DON'T EDIT MANUALLY."
|
||||
print "--]]"
|
||||
print "local _keys = {"
|
||||
}
|
||||
|
||||
$1 ~ /^[A-Fa-f0-9]+/ { sub(/\r/, ""); print " '"substr($1,1,12)"'," }
|
||||
|
||||
END {
|
||||
print "}"
|
||||
|
||||
print "---"
|
||||
print "-- The keys above have just been pasted in, for completeness sake. They contain duplicates. "
|
||||
print "-- We need to weed the duplicates out before we expose the list to someone who actually wants to use them"
|
||||
print "-- @param list a list to do 'uniq' on"
|
||||
print ""
|
||||
print "local function uniq(list)"
|
||||
print "}"
|
||||
print "---"
|
||||
print "-- The keys above have just been pasted in, for completeness sake. They contain duplicates. "
|
||||
print "-- We need to weed the duplicates out before we expose the list to someone who actually wants to use them"
|
||||
print "-- @param list a list to do 'uniq' on"
|
||||
print ""
|
||||
print " local foobar = {}"
|
||||
print "local function uniq(list)"
|
||||
print ""
|
||||
print " local foobar = {}"
|
||||
print " for _, value in pairs(list) do"
|
||||
print " value = value:lower()"
|
||||
print " if not foobar[value] then"
|
||||
|
@ -29,4 +28,4 @@ END {
|
|||
print " return foobar"
|
||||
print "end"
|
||||
print "return uniq(_keys)"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue