diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-09-26 12:23:58 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-09-26 12:23:58 +0200 |
commit | 8344b09c4f9989370691c71b1145b09348e0a6d3 (patch) | |
tree | 2516e4de9fdab01eeb630ac871c9288a42c919df /xS/hid-gen-replies.sh | |
parent | 12382335564ff91d0647408e3a105ba0b30b03e9 (diff) | |
download | xK-8344b09c4f9989370691c71b1145b09348e0a6d3.tar.gz xK-8344b09c4f9989370691c71b1145b09348e0a6d3.tar.xz xK-8344b09c4f9989370691c71b1145b09348e0a6d3.zip |
hid: rename to xS before merge into xK
Diffstat (limited to 'xS/hid-gen-replies.sh')
-rwxr-xr-x | xS/hid-gen-replies.sh | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/xS/hid-gen-replies.sh b/xS/hid-gen-replies.sh deleted file mode 100755 index c32b000..0000000 --- a/xS/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 "}" - }' |