aboutsummaryrefslogtreecommitdiffstats
path: root/dist-tools/translators.sh
blob: adf581eff65968c9913c81c7b299830df4cdb1d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -eu
cd "$(realpath $(dirname $0))/.."

ver=$(sed -n '/Project-Id-Version:/s/.*fetchmail \([^\\]\+\).*/\1/p' po/fetchmail.pot )
expver=${VERSION:-$ver}
git log --oneline --all-match --grep ".* translation ...\\? fetchmail.$expver" --pretty=format:%ad:%an:%s --date=unix | \
	sed 's/\(Update\|Add new\) <\([^>]\+\)> \(.*\) translation .*/\2:\3/' | \
sort -n | \
while IFS=: read date author code lang ; do
  printf '* %-6s %s [%s]\n' "$code:" "$author" "$lang"
done