diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-09-26 13:36:19 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-09-26 13:37:51 +0200 |
commit | 103704b183cbfeab341ecf4314b4d82694b07ce1 (patch) | |
tree | be51fd78b732159cb4cc0b55c92dcb3618e17f2d /hid/hid-gen-replies.sh | |
parent | 18e8e11ad47a1380b0c223c6e5b143f8d6f44754 (diff) | |
download | haven-103704b183cbfeab341ecf4314b4d82694b07ce1.tar.gz haven-103704b183cbfeab341ecf4314b4d82694b07ce1.tar.xz haven-103704b183cbfeab341ecf4314b4d82694b07ce1.zip |
Punt hid back where it came from
Diffstat (limited to 'hid/hid-gen-replies.sh')
-rwxr-xr-x | hid/hid-gen-replies.sh | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/hid/hid-gen-replies.sh b/hid/hid-gen-replies.sh deleted file mode 100755 index c32b000..0000000 --- a/hid/hid-gen-replies.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -LC_ALL=C exec awk ' - /^[0-9]+ *(ERR|RPL)_[A-Z]+ *".*"$/ { - match($0, /".*"/); - ids[$1] = $2; - texts[$2] = substr($0, RSTART, RLENGTH); - } - END { - print "package " ENVIRON["GOPACKAGE"] "\n\nconst (" - for (i in ids) - printf("\t%s = %s\n", ids[i], i) - print ")\n\nvar defaultReplies = map[int]string{" - for (i in ids) - print "\t" ids[i] ": " texts[ids[i]] "," - print "}" - }' |