[pan2] Add mknews



commit 221c8efd458d5ac24a6b585faa0fa0c719a3d57c
Author: Petr Kovar <pknbe volny cz>
Date:   Sun Mar 13 23:26:03 2016 +0100

    Add mknews
    
    Based on shaunm's simple NEWS entry generator:
    https://git.gnome.org/browse/gnome-user-docs/plain/mknews

 mknews |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/mknews b/mknews
new file mode 100755
index 0000000..61fd71a
--- /dev/null
+++ b/mknews
@@ -0,0 +1,23 @@
+#!/bin/bash
+# Based on shaunm's simple NEWS entry generator:
+# https://git.gnome.org/browse/gnome-user-docs/plain/mknews
+
+if [ "$#" != "1" ]; then
+    echo "Usage: mknews PREVTAG" 1>&2
+    exit 1
+fi
+
+commits=`git log ${1}.. --pretty="format:  %h %s (%an)" -- . ":!po"`
+echo "$commits"
+
+echo '* Contributors to this release:'
+contrib=`git log ${1}.. --pretty=format:%an, -- . ":!po" | sort | uniq -c | sort -rn | sed -e 's/^ *[0-9]\+ 
\+//'`
+echo '  '$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, po/${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/,)$/)/'
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]