aboutsummaryrefslogtreecommitdiff
path: root/hid/hid-gen-replies.sh
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-26 13:36:19 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-26 13:37:51 +0200
commit103704b183cbfeab341ecf4314b4d82694b07ce1 (patch)
treebe51fd78b732159cb4cc0b55c92dcb3618e17f2d /hid/hid-gen-replies.sh
parent18e8e11ad47a1380b0c223c6e5b143f8d6f44754 (diff)
downloadhaven-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-xhid/hid-gen-replies.sh16
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 "}"
- }'