summaryrefslogtreecommitdiffstats
path: root/collect-changes.sh
diff options
context:
space:
mode:
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