[Dbconfig-common-devel] dbconfig-common/debian credit-xlators,1.2,1.3
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-serv29248/debian
Modified Files:
credit-xlators
Log Message:
fix for #305092
Index: credit-xlators
===================================================================
RCS file: /cvsroot/dbconfig-common/dbconfig-common/debian/credit-xlators,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- credit-xlators 8 Apr 2005 02:53:57 -0000 1.2
+++ credit-xlators 18 Apr 2005 00:43:34 -0000 1.3
@@ -1,6 +1,6 @@
#!/bin/sh
-# credit-xlators - v0.5
+# credit-xlators - v0.6
# copyright (c) 2005 sean finney <seanius@debian.org>
# you may use, copy, modify, or redistribute this software under the terms of
# any DFSG-compliant software license
@@ -10,7 +10,35 @@
# credit-xlators [podir]
# where [podir] defaults to debian/po
-cat << EOF
+TEMP=`getopt -o t -n $0 -- "$@"`
+if [ $? != 0 ] ; then echo "only option i know if is -t" >&2 ; exit 1 ; fi
+eval set -- "$TEMP"
+
+while true; do
+ case "$1" in
+ -t)
+ do_terse="y"
+ ;;
+ --)
+ shift
+ break
+ ;;
+ *)
+ echo "eh? $1" > /dev/stderr
+ exit 1
+ ;;
+ esac
+ shift
+done
+
+if [ "$1" ]; then
+ podir="$1"
+else
+ podir="debian/po"
+fi
+
+if [ ! "$do_terse" ]; then
+ 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!
@@ -20,17 +48,20 @@
================================================================================
EOF
-if [ "$1" ]; then
- podir="$1"
+ 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
else
- podir="debian/po"
+ for f in `ls "$podir"/*.po | sort`; do
+ xl=`grep '^"Last-Translator' $f | sed -e 's,^[^:]*: \([^\\]*\).*,\1,'`
+ if [ "$xl" ]; then
+ echo $xl
+ fi
+ done
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