aboutsummaryrefslogtreecommitdiffstats
path: root/dist-tools/translators.sh
blob: ea6e79254a360edbf534bf0feaac30d9f1a756d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
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