[Dbconfig-common-devel] dbconfig-common/debian credit-xlators,NONE,1.1 changelog,1.18,1.19 rules,1.8,1.9

seanius@haydn.debian.org seanius@haydn.debian.org


Update of /cvsroot/dbconfig-common/dbconfig-common/debian
In directory haydn:/org/alioth.debian.org/chroot/home/users/seanius/tmp/cvs-serv1412/debian

Modified Files:
	changelog rules 
Added Files:
	credit-xlators 
Log Message:
a neat little script to credit the translators


--- NEW FILE: credit-xlators ---
#!/bin/sh

# credit-xlators - v0.5
# copyright (c) 2005 sean finney
# you may use, copy, modify, or redistribute this software under the terms of
# any DFSG-compliant software license 
# (see http://www.debian.org/social_contract#guidelines)
#
# usage:
#	credit-xlators [podir]
# where [podir] defaults to debian/po

cat << EOF
The maintainer of this package greatly appreciates the work of the many
volunteers who have contributed their time and efforts into translating
the debconf templates in this package.  Thanks for your work!

================================================================================
Translators who have most recently contributed, sorted by language:
================================================================================
EOF

if [ "$1" ]; then
	podir="$1"
else
	podir="debian/po"
fi

for f in `ls "$podir"/*.po | sort`; do
	l=`basename $f .po`
	xl=`grep '^"Last-Translator' $f | sed -e 's,^[^:]*: \([^\\]*\).*,\1,'`
	if [ ! "$xl" ]; then
		xl="(unknown or not specified in the po file)"
	fi
	echo $l: $xl
done

Index: changelog
===================================================================
RCS file: /cvsroot/dbconfig-common/dbconfig-common/debian/changelog,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- changelog	1 Apr 2005 23:52:46 -0000	1.18
+++ changelog	2 Apr 2005 00:29:47 -0000	1.19
@@ -3,6 +3,7 @@
   * added a substitutable ${dbvendor} variable in the questions, which allows
     me to drastically shrink a number of similar mysql/pgsql questions.
   * drastically shrank a number of similar mysql/pgsql questions :)
+  * added a neat little script to credit the translators.
   * spanish translation from Javier Fernández-Sanguino Peña <jfs@computer.org>.
   * minor typographical corrections from Javier.
 

Index: rules
===================================================================
RCS file: /cvsroot/dbconfig-common/dbconfig-common/debian/rules,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- rules	31 Mar 2005 04:40:08 -0000	1.8
+++ rules	2 Apr 2005 00:29:47 -0000	1.9
@@ -11,6 +11,7 @@
 
 TMPDIR:=debian/dbconfig-common
 SHARE=${TMPDIR}/usr/share/dbconfig-common
+DOC=${TMPDIR}/usr/share/doc/dbconfig-common
 
 configure: configure-stamp
 configure-stamp:
@@ -36,6 +37,7 @@
 	dh_testroot
 	dh_clean -k 
 	dh_installdirs
+	debian/credit-xlators > ${DOC}/TRANSLATORS
 	mkdir -p debian/dbconfig-common/etc/dbconfig-common
 	cp -Pr dpkg debian/dbconfig-common/usr/share/dbconfig-common/
 	cp -Pr internal debian/dbconfig-common/usr/share/dbconfig-common/