summaryrefslogtreecommitdiffstats
path: root/collect-changes.sh
blob: 7890ddfe6b6f395773e740503c7c0e61af099052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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