File: msgmerge-15

package info (click to toggle)
gettext 0.17-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 64,956 kB
  • ctags: 38,653
  • sloc: ansic: 299,024; sh: 49,429; makefile: 8,097; perl: 4,181; lisp: 3,261; yacc: 665; java: 618; cs: 578; sed: 369; objc: 337; cpp: 325; awk: 80; tcl: 63; pascal: 12; php: 8
file content (62 lines) | stat: -rwxr-xr-x 1,519 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#! /bin/sh

# Test pseudo-comments containing filenames that start with a digit.

tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15

tmpfiles="$tmpfiles mm-test15.pot mm-test15.po"
cat <<\EOF > mm-test15.pot
msgid ""
msgstr ""
"Project-Id-Version: GNU gettext 0.11.5\n"
"POT-Creation-Date: 2002-08-20 15:24+0200\n"
"PO-Revision-Date: 2002-12-02 07:05+0100\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: 123.c:134
#, c-format
msgid "invalid argument `%s' for `%s'"
msgstr "ungültiges Argument »%s« für »%s«"
EOF

cat <<\EOF > mm-test15.po
#: 123.c:134
#, c-format
msgid "invalid argument `%s' for `%s'"
msgstr ""
EOF

tmpfiles="$tmpfiles mm-test15.tmp mm-test15.out"
: ${MSGMERGE=msgmerge}
${MSGMERGE} -q -o mm-test15.tmp mm-test15.pot mm-test15.po
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
tr -d '\r' < mm-test15.tmp > mm-test15.out
test $? = 0 || { rm -fr $tmpfiles; exit 1; }

tmpfiles="$tmpfiles mm-test15.ok"
cat <<\EOF > mm-test15.ok
msgid ""
msgstr ""
"Project-Id-Version: GNU gettext 0.11.5\n"
"POT-Creation-Date: 2002-08-20 15:24+0200\n"
"PO-Revision-Date: 2002-12-02 07:05+0100\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: 123.c:134
#, c-format
msgid "invalid argument `%s' for `%s'"
msgstr "ungültiges Argument »%s« für »%s«"
EOF

: ${DIFF=diff}
${DIFF} mm-test15.ok mm-test15.out
result=$?

rm -fr $tmpfiles

exit $result