diff options
Diffstat (limited to 'dist-tools')
-rwxr-xr-x | dist-tools/translators.sh | 12 |
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 |