summaryrefslogtreecommitdiff
path: root/kike-extract-messages.sh
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-08-10 00:47:26 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-08-10 00:47:26 +0200
commit126c07b70a7f3217845ffbdf2a001af355755d7c (patch)
tree18dd0b8caa0b2b7a46dcd2d1044a5b0f5393d065 /kike-extract-messages.sh
parentbd68e28b608fb74bb4823726b9f0bf6489ad94b5 (diff)
downloadxK-126c07b70a7f3217845ffbdf2a001af355755d7c.tar.gz
xK-126c07b70a7f3217845ffbdf2a001af355755d7c.tar.xz
xK-126c07b70a7f3217845ffbdf2a001af355755d7c.zip
kike: generate replies from a single text file
It became a bit difficult to maintain two separate lists. Besides, the inverse generation of a message catalog from source code was a bit strange.
Diffstat (limited to 'kike-extract-messages.sh')
-rwxr-xr-xkike-extract-messages.sh15
1 files changed, 0 insertions, 15 deletions
diff --git a/kike-extract-messages.sh b/kike-extract-messages.sh
deleted file mode 100755
index 9438695..0000000
--- a/kike-extract-messages.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-LC_ALL=C exec awk '
- BEGIN {
- print "$quote \"";
- print "$set 1";
- }
- /^\tIRC_(ERR|RPL)_[A-Z]+ *= *[0-9]+,?$/ {
- match($3, /^[0-9]+/);
- id[$1] = substr($3, RSTART, RLENGTH);
- }
- /^\t\[IRC_(ERR|RPL)_[A-Z]+\] *= *".*",?$/ {
- z = substr($1, 2, length($1) - 2);
- match($0, /".*"/);
- print id[z] " " substr($0, RSTART, RLENGTH);
- }'