]>
Commit | Line | Data |
---|---|---|
5f555545 JR |
1 | diff -urNp -x '*.orig' translate-toolkit-2.2.4.org/tools/junitmsgfmt translate-toolkit-2.2.4/tools/junitmsgfmt |
2 | --- translate-toolkit-2.2.4.org/tools/junitmsgfmt 2017-07-31 15:41:45.000000000 +0200 | |
3 | +++ translate-toolkit-2.2.4/tools/junitmsgfmt 2021-03-02 23:26:50.197044243 +0100 | |
d7f1ec8a ER |
4 | @@ -1,4 +1,4 @@ |
5 | -#!/bin/bash | |
6 | +#!/bin/sh | |
7 | # | |
8 | # Copyright 2010 Zuza Software Foundation | |
9 | # | |
5f555545 | 10 | @@ -25,38 +25,38 @@ body="" |
d7f1ec8a ER |
11 | failures=0 |
12 | successes=0 | |
13 | ||
14 | -function failure { | |
15 | +failure() { | |
16 | pofile=$1 | |
17 | body=$(echo $body; echo "<testcase classname=\"$pofile\" name=\"msgfmt\" time=\"\">\n"; echo "<failure message=\"msgfmt failure\">$message</failure>\n</testcase>\n") | |
18 | message="" | |
19 | failures=$(($failures + 1)) | |
20 | } | |
21 | ||
22 | -function success { | |
23 | +success() { | |
24 | pofile=$1 | |
25 | body=$(echo $body; echo "<testcase classname=\"$pofile\" name=\"msgfmt\" time=\"\"></testcase>\n") | |
26 | message="" | |
27 | successes=$(($successes + 1)) | |
28 | } | |
29 | ||
30 | -function run_msgfmt { | |
31 | +run_msgfmt() { | |
32 | pofile=$1 | |
33 | exit_status=$(msgfmt -cv -o /dev/null $pofile 2>/dev/null > /dev/null; echo $?) | |
34 | - message=$(msgfmt -cv -o /dev/null $pofile 2>/dev/stdout | while read i; do echo "$i\n" ; done) | |
35 | + message=$(msgfmt -cv -o /dev/null $pofile 2>/dev/stdout | while read i; do echo "$i"; echo "" ; done) | |
36 | return $exit_status | |
37 | } | |
38 | ||
39 | -function print_header { | |
40 | +print_header() { | |
41 | echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | |
42 | echo "<testsuite name=\"\" errors=\"0\" failures=\"$failures\" skips=\"0\" tests=\"$((failures + successes))\" time=\"\" >" | |
43 | } | |
44 | ||
45 | -function print_body { | |
46 | +print_body() { | |
47 | cat - | |
48 | - echo -e $body | |
49 | + echo $body | |
50 | } | |
51 | ||
52 | -function print_footer { | |
53 | +print_footer() { | |
54 | cat - | |
55 | echo "</testsuite>" | |
56 | } | |
5f555545 JR |
57 | diff -urNp -x '*.orig' translate-toolkit-2.2.4.org/tools/pocommentclean translate-toolkit-2.2.4/tools/pocommentclean |
58 | --- translate-toolkit-2.2.4.org/tools/pocommentclean 2017-07-31 15:41:45.000000000 +0200 | |
59 | +++ translate-toolkit-2.2.4/tools/pocommentclean 2021-03-02 23:26:50.197044243 +0100 | |
d7f1ec8a ER |
60 | @@ -1,4 +1,4 @@ |
61 | -#!/bin/bash | |
62 | +#!/bin/sh | |
63 | # | |
64 | # Copyright 2005 Zuza Software Foundation | |
65 | # | |
5f555545 JR |
66 | diff -urNp -x '*.orig' translate-toolkit-2.2.4.org/tools/pocompendium translate-toolkit-2.2.4/tools/pocompendium |
67 | --- translate-toolkit-2.2.4.org/tools/pocompendium 2017-07-31 15:41:45.000000000 +0200 | |
68 | +++ translate-toolkit-2.2.4/tools/pocompendium 2021-03-02 23:26:50.197044243 +0100 | |
69 | @@ -23,7 +23,7 @@ | |
d7f1ec8a ER |
70 | # combined and marked fuzzy. |
71 | ||
72 | ||
73 | -function print_usage() { | |
74 | +print_usage() { | |
75 | echo "Usage: `basename $0` [options] output.po <-d directory(s)|file(s)>" | |
76 | echo " The first parameter is the output file, standard output if the output file is '-'." | |
77 | echo " Any number of directories may be specified for input files." | |
5f555545 | 78 | @@ -96,7 +96,7 @@ shift |
d7f1ec8a ER |
79 | |
80 | tmp_dir=`mktemp -d tmp.XXXXXXXXXX` | |
81 | ||
82 | -if [ $1 == "-d" ]; then | |
83 | +if [ $1 = "-d" ]; then | |
84 | shift | |
85 | directories=$* | |
86 | if [ $# -eq 0 ]; then | |
5f555545 JR |
87 | diff -urNp -x '*.orig' translate-toolkit-2.2.4.org/tools/pomigrate2 translate-toolkit-2.2.4/tools/pomigrate2 |
88 | --- translate-toolkit-2.2.4.org/tools/pomigrate2 2017-07-31 15:41:45.000000000 +0200 | |
89 | +++ translate-toolkit-2.2.4/tools/pomigrate2 2021-03-02 23:26:50.197044243 +0100 | |
90 | @@ -21,7 +21,7 @@ | |
d7f1ec8a ER |
91 | # pomigrate2 - migrates PO files from an old version using new POT files. |
92 | ||
93 | ||
94 | -function usage() { | |
95 | +usage() { | |
96 | echo "Usage `basename $0` [options] <product-old> <product-new> <product-templates>" | |
97 | echo | |
98 | echo "Options:" | |
5f555545 | 99 | @@ -99,7 +99,7 @@ templates=$3 |
d7f1ec8a ER |
100 | |
101 | echo "** Migrating files... **" | |
102 | pots=`cd $templates; find . -name "*.pot"` | |
103 | -if [ "$pots" == "" ]; then | |
104 | +if [ "$pots" = "" ]; then | |
105 | echo "No POT templates found in: $templates" | |
106 | exit 1 | |
107 | fi | |
5f555545 JR |
108 | diff -urNp -x '*.orig' translate-toolkit-2.2.4.org/tools/popuretext translate-toolkit-2.2.4/tools/popuretext |
109 | --- translate-toolkit-2.2.4.org/tools/popuretext 2017-07-31 15:41:45.000000000 +0200 | |
110 | +++ translate-toolkit-2.2.4/tools/popuretext 2021-03-02 23:26:50.197044243 +0100 | |
d7f1ec8a ER |
111 | @@ -1,4 +1,4 @@ |
112 | -#!/bin/bash | |
113 | +#!/bin/sh | |
114 | # | |
115 | # Copyright 2005 Zuza Software Foundation | |
116 | # | |
5f555545 | 117 | @@ -27,7 +27,7 @@ if [ $# -lt 2 ]; then |
d7f1ec8a ER |
118 | fi |
119 | ||
120 | do_pot=0 | |
121 | -if [ "$1" == "-P" ]; then | |
122 | +if [ "$1" = "-P" ]; then | |
123 | do_pot=1 | |
124 | shift | |
125 | potdir=$1 | |
5f555545 JR |
126 | diff -urNp -x '*.orig' translate-toolkit-2.2.4.org/tools/poreencode translate-toolkit-2.2.4/tools/poreencode |
127 | --- translate-toolkit-2.2.4.org/tools/poreencode 2017-07-31 15:41:45.000000000 +0200 | |
128 | +++ translate-toolkit-2.2.4/tools/poreencode 2021-03-02 23:26:50.197044243 +0100 | |
d7f1ec8a ER |
129 | @@ -1,4 +1,4 @@ |
130 | -#!/bin/bash | |
131 | +#!/bin/sh | |
132 | # | |
133 | # Copyright 2004 Zuza Software Foundation | |
134 | # | |
5f555545 JR |
135 | diff -urNp -x '*.orig' translate-toolkit-2.2.4.org/tools/posplit translate-toolkit-2.2.4/tools/posplit |
136 | --- translate-toolkit-2.2.4.org/tools/posplit 2017-07-31 15:41:45.000000000 +0200 | |
137 | +++ translate-toolkit-2.2.4/tools/posplit 2021-03-02 23:26:50.197044243 +0100 | |
d7f1ec8a ER |
138 | @@ -1,4 +1,4 @@ |
139 | -#!/bin/bash | |
140 | +#!/bin/sh | |
141 | # | |
142 | # Copyright 2004, 2007 Zuza Software Foundation | |
143 | # |