aboutsummaryrefslogtreecommitdiffstats
path: root/dist-tools/translators.sh
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2020-04-01 15:14:29 +0200
committerMatthias Andree <matthias.andree@gmx.de>2020-04-01 15:14:29 +0200
commit53e01599d2c1ba5be555aa062c182cc8f32b68df (patch)
tree136ab96287731a8b40bc1030d87ce1926955632c /dist-tools/translators.sh
parent117ecd063a2f8ed731f58854df08161186ebedfe (diff)
downloadfetchmail-53e01599d2c1ba5be555aa062c182cc8f32b68df.tar.gz
fetchmail-53e01599d2c1ba5be555aa062c182cc8f32b68df.tar.bz2
fetchmail-53e01599d2c1ba5be555aa062c182cc8f32b68df.zip
Add script to format new translations for NEWS.
Diffstat (limited to 'dist-tools/translators.sh')
-rwxr-xr-xdist-tools/translators.sh12
1 files changed, 12 insertions, 0 deletions
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