summaryrefslogtreecommitdiffstats
path: root/collect-changes.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:43:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:43:11 +0000
commitfc22b3d6507c6745911b9dfcc68f1e665ae13dbc (patch)
treece1e3bce06471410239a6f41282e328770aa404a /collect-changes.sh
parentInitial commit. (diff)
downloadmanpages-l10n-fc22b3d6507c6745911b9dfcc68f1e665ae13dbc.tar.xz
manpages-l10n-fc22b3d6507c6745911b9dfcc68f1e665ae13dbc.zip
Adding upstream version 4.22.0.upstream/4.22.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collect-changes.sh')
-rwxr-xr-xcollect-changes.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/collect-changes.sh b/collect-changes.sh
new file mode 100755
index 00000000..7890ddfe
--- /dev/null
+++ b/collect-changes.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+set -e
+
+last_release=$(git for-each-ref --count=1 --sort="-committerdate" refs/tags | cut -f2 | cut -d/ -f3)
+
+echo "## Version X.X"
+echo
+echo "* New translations:"
+git diff --name-status $last_release po/*/man*/ |
+grep "^A" |
+cut -f2 |
+LC_ALL=C sort |
+cut -d"/" -f4 |
+sed -e "s/\.po$//" |
+perl -e "my @a; while (<>) { chomp; push(@a, \$_); } print join(', ', @a); print \"\\n\";" |
+fold --spaces --width=68 |
+perl -ne "print ' '; print;"
+
+echo "* Removed translations:"
+git diff --name-status $last_release po/man?/ |
+grep "^D" |
+cut -f2 |
+LC_ALL=C sort |
+cut -d"/" -f4 |
+sed -e "s/\.po$//" |
+perl -e "my @a; while (<>) { chomp; push(@a, \$_); } print join(', ', @a); print \"\\n\";" |
+fold --spaces --width=68 |
+perl -ne "print ' '; print;"
+
+
+echo
+echo