[gcompris/gcomprixogoo] Taken the code from Jonh Wendell to update our list_translators.sh for git.



commit 7644d6b08200345b9558859d877bc24fd559a55d
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Mon Dec 6 01:14:28 2010 +0100

    Taken the code from Jonh Wendell to update our list_translators.sh for git.

 list_translators.sh |   20 ++++----------------
 1 files changed, 4 insertions(+), 16 deletions(-)
---
diff --git a/list_translators.sh b/list_translators.sh
index 4fdf9a0..adc9848 100755
--- a/list_translators.sh
+++ b/list_translators.sh
@@ -1,18 +1,6 @@
-#!/bin/bash
+#!/bin/sh
 
-# usage: tranlators.sh LAST_RELEASE_TAG
+# usage: translators.sh <LAST_COMMIT_ID>
 
-# Changed so that the list comes out sorted by .po file name
-# Mariano Suárez-Alvarez, Tue Feb 17 16:59:28 ART 2004
-
-if [ ! $# -eq 1 ] ; then
-        echo "usage: $0 LAST_RELEASE_TAG"
-        exit 1;
-fi
-
-svn diff -r $1 po/ChangeLog | \
-  (awk  '/\+ *[a-z][a-zA-Z _]*\ po/ { print gensub ("[:,]", "\n", "g", $3); }' | \
-    while read file; do
-  if [ -z "$file" ]; then continue; fi
-  echo "(${file%%.po})" $(grep "Last-Translator" po/$file | sed -e 's/"Last-Translator:  *\(.*\)  *<.*/\1/')
-done) | sort | uniq | sed -e 's/\((.*)\) \(.*\)/\2 \1/'
+echo "UI translations:"
+git log $1..HEAD --pretty=format:%an --name-only  -- po/*.po | sed -e :a -e '$!N;s|\npo/\(.*\)\.po| \(\1\)|;ta' | sort -u | sed '$!N;s/^\n//'



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