1 --- translate-toolkit-1.7.0/tools.orig/junitmsgfmt 2010-05-12 16:41:15.000000000 +0200
2 +++ translate-toolkit-1.7.0/tools/junitmsgfmt 2010-05-13 19:21:20.617544285 +0200
7 # Copyright 2010 Zuza Software Foundation
16 body=$(echo $body; echo "<testcase classname=\"$pofile\" name=\"msgfmt\" time=\"\">\n"; echo "<failure message=\"msgfmt failure\">$message</failure>\n</testcase>\n")
18 failures=$(($failures + 1))
24 body=$(echo $body; echo "<testcase classname=\"$pofile\" name=\"msgfmt\" time=\"\"></testcase>\n")
26 successes=$(($successes + 1))
29 -function run_msgfmt {
32 exit_status=$(msgfmt -cv -o /dev/null $pofile 2>/dev/null > /dev/null; echo $?)
33 - message=$(msgfmt -cv -o /dev/null $pofile 2>/dev/stdout | while read i; do echo "$i\n" ; done)
34 + message=$(msgfmt -cv -o /dev/null $pofile 2>/dev/stdout | while read i; do echo "$i"; echo "" ; done)
38 -function print_header {
40 echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
41 echo "<testsuite name=\"\" errors=\"0\" failures=\"$failures\" skips=\"0\" tests=\"$((failures + successes))\" time=\"\" >"
44 -function print_body {
51 -function print_footer {
56 --- translate-toolkit-1.7.0/tools.orig/pocommentclean 2008-10-31 16:58:36.000000000 +0100
57 +++ translate-toolkit-1.7.0/tools/pocommentclean 2010-05-13 19:21:20.617544285 +0200
62 # Copyright 2005 Zuza Software Foundation
64 --- translate-toolkit-1.7.0/tools.orig/pocompendium 2008-01-24 12:54:56.000000000 +0100
65 +++ translate-toolkit-1.7.0/tools/pocompendium 2010-05-13 19:21:20.621015064 +0200
70 # Copyright 2004, 2005 Zuza Software Foundation
73 # combined and marked fuzzy.
76 -function print_usage() {
78 echo "Usage: `basename $0` [options] output.po <-d directory(s)|file(s)>"
79 echo " The first parameter is the output file, standard output if the output file is '-'."
80 echo " Any number of directories may be specified for input files."
83 tmp_dir=`mktemp -d tmp.XXXXXXXXXX`
85 -if [ $1 == "-d" ]; then
86 +if [ $1 = "-d" ]; then
90 --- translate-toolkit-1.7.0/tools.orig/pomigrate2 2009-07-21 21:40:54.000000000 +0200
91 +++ translate-toolkit-1.7.0/tools/pomigrate2 2010-05-13 19:21:20.621015064 +0200
96 # Copyright 2004, 2005 Zuza Software Foundation
99 # pomigrate2 - migrates PO files from an old version using new POT files.
104 echo "Usage `basename $0` [options] <product-old> <product-new> <product-templates>"
109 echo "** Migrating files... **"
110 pots=`cd $templates; find . -name "*.pot"`
111 -if [ "$pots" == "" ]; then
112 +if [ "$pots" = "" ]; then
113 echo "No POT templates found in: $templates"
116 --- translate-toolkit-1.7.0/tools.orig/popuretext 2010-01-12 14:02:34.000000000 +0100
117 +++ translate-toolkit-1.7.0/tools/popuretext 2010-05-13 19:21:20.621015064 +0200
122 # Copyright 2005 Zuza Software Foundation
128 -if [ "$1" == "-P" ]; then
129 +if [ "$1" = "-P" ]; then
133 --- translate-toolkit-1.7.0/tools.orig/poreencode 2008-01-24 12:54:56.000000000 +0100
134 +++ translate-toolkit-1.7.0/tools/poreencode 2010-05-13 19:21:20.621015064 +0200
139 # Copyright 2004 Zuza Software Foundation
141 --- translate-toolkit-1.7.0/tools.orig/posplit 2007-02-01 11:40:17.000000000 +0100
142 +++ translate-toolkit-1.7.0/tools/posplit 2010-05-13 19:21:20.621015064 +0200
147 # Copyright 2004, 2007 Zuza Software Foundation