From dfd56b73b2fc4edae07ec4dc46b0cf7b8525a3ae Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 3 Oct 2021 12:22:57 -0300 Subject: po/extract-strings.sh: Use dedicated file for extracting strings --- po/extract-strings.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 po/extract-strings.sh (limited to 'po/extract-strings.sh') 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] + } +} +' -- cgit v1.2.3