aboutsummaryrefslogtreecommitdiff
path: root/po/extract-strings.sh
diff options
context:
space:
mode:
Diffstat (limited to 'po/extract-strings.sh')
-rwxr-xr-xpo/extract-strings.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/po/extract-strings.sh b/po/extract-strings.sh
new file mode 100755
index 0000000..097cdda
--- /dev/null
+++ b/po/extract-strings.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+set -eu
+
+awk '
+/^# End translatable strings$/ { exit }
+
+{ lines[i++] = $0 }
+
+END {
+ for (l = 0; l < i - 2; l++) {
+ if (l == 1) {
+ print "# shellcheck disable=2034"
+ }
+ print lines[l]
+ }
+}
+'