aboutsummaryrefslogtreecommitdiffstats
path: root/dist-tools/translators.sh
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2020-06-14 20:13:14 +0200
committerMatthias Andree <matthias.andree@gmx.de>2020-06-14 20:13:14 +0200
commit51f58f8e4d5c7409967f197ca6176be05608bb9e (patch)
treea09dedca1263abd6dccde26077f5e611147b3c43 /dist-tools/translators.sh
parent580124aae3d51184a02937f0222b872841d2a80c (diff)
downloadfetchmail-51f58f8e4d5c7409967f197ca6176be05608bb9e.tar.gz
fetchmail-51f58f8e4d5c7409967f197ca6176be05608bb9e.tar.bz2
fetchmail-51f58f8e4d5c7409967f197ca6176be05608bb9e.zip
Update scripts to handle new translations.
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"