aboutsummaryrefslogtreecommitdiffstats
path: root/dist-tools/translators.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dist-tools/translators.sh')
-rwxr-xr-xdist-tools/translators.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/dist-tools/translators.sh b/dist-tools/translators.sh
index ea6e7925..adf581ef 100755
--- a/dist-tools/translators.sh
+++ b/dist-tools/translators.sh
@@ -4,8 +4,9 @@ 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/' | \
+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"