From 51f58f8e4d5c7409967f197ca6176be05608bb9e Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 14 Jun 2020 20:13:14 +0200 Subject: Update scripts to handle new translations. --- dist-tools/translators.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dist-tools/translators.sh') 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" -- cgit v1.2.3