summaryrefslogtreecommitdiff
path: root/mknews
blob: 2519c111161d21bd18049625bddee8eb9072ffd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

if [ "$#" != "1" ]; then
    echo "Usage: mknews PREVTAG" 1>&2
    exit 1
fi

contrib=`git log ${1}.. --pretty=format:%an, gnome-help/C/ | sort | uniq -c | sort -rn | sed -e 's/^ *[0-9]\+ \+//'`
echo '* Updates to Getting Started ('$contrib')' | grep -v '()$' | sed -e 's/,)$/)/'

spc='          '
echo '* Updated translations:'
find . -name '*.po' -exec basename {} .po \; | sort -u | while read lc; do
    contrib=`git log ${1}.. --pretty=format:%an, */$lc/${lc}.po | sort | uniq -c | sort -rn | sed -e 's/^ *[0-9]\+ \+//'`
    echo "  $lc${spc:0:((10-${#lc}))}("$contrib")"
done | grep -v '()$' | sed -e 's/,)$/)/'