From 53e01599d2c1ba5be555aa062c182cc8f32b68df Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 1 Apr 2020 15:14:29 +0200 Subject: Add script to format new translations for NEWS. --- dist-tools/translators.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 dist-tools/translators.sh (limited to 'dist-tools') diff --git a/dist-tools/translators.sh b/dist-tools/translators.sh new file mode 100755 index 00000000..ea6e7925 --- /dev/null +++ b/dist-tools/translators.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +set -eu +cd "$(realpath $(dirname $0))/.." + +ver=$(sed -n '/Project-Id-Version:/s/.*fetchmail \([^\\]\+\).*/\1/p' po/fetchmail.pot ) +git log --oneline --all-match --grep "Update .* translation to fetchmail.$ver" --pretty=format:%ad:%an:%s --date=unix | \ +sed 's/Update <\([^>]\+\)> \(.*\) translation to.*/\1:\2/' | \ +sort -n | \ +while IFS=: read date author code lang ; do + printf '* %-6s %s [%s]\n' "$code:" "$author" "$lang" +done -- cgit v1.2.3