From 103704b183cbfeab341ecf4314b4d82694b07ce1 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Mon, 26 Sep 2022 13:36:19 +0200 Subject: Punt hid back where it came from --- hid/hid-gen-replies.sh | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100755 hid/hid-gen-replies.sh (limited to 'hid/hid-gen-replies.sh') 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 "}" - }' -- cgit v1.2.3-70-g09d2