1#! /bin/sh
2. "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4# Test --empty option.
5
6cat <<\EOF > ma-test19.po
7# HEADER.
8#
9msgid ""
10msgstr ""
11"Project-Id-Version: Bonnie Tyler\n"
12"Content-Type: text/plain; charset=ISO-8859-1\n"
13"Content-Transfer-Encoding: 8bit\n"
14"Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
16#: married-men:4
17#, fuzzy
18msgid "The world is full of married men"
19msgstr "So viele verheiratete M�nner"
20
21#: married-men:5
22msgid "with wives who never understand"
23msgstr "und ihre Frauen verstehen sie nicht"
24
25#: married-men:6
26msgid "They're looking for someone to share"
27msgstr ""
28
29#, fuzzy, c-format
30msgid "One file deleted."
31msgid_plural "%u files deleted."
32msgstr[0] "Ein Fehler."
33msgstr[1] "%u Fehler."
34
35#~ msgid "You fly on the wings of romance"
36#~ msgstr "Die Fl�gel der frischen Liebe heben dich zum Himmel"
37
38#, fuzzy
39#~ msgid "In the eyes of the world"
40#~ msgstr "F�r die anderen"
41EOF
42
43: ${MSGATTRIB=msgattrib}
44${MSGATTRIB} --clear-fuzzy --empty -o ma-test19.tmp ma-test19.po \
45    || Exit 1
46LC_ALL=C tr -d '\r' < ma-test19.tmp > ma-test19.out || Exit 1
47
48cat <<\EOF > ma-test19.ok
49# HEADER.
50#
51msgid ""
52msgstr ""
53"Project-Id-Version: Bonnie Tyler\n"
54"Content-Type: text/plain; charset=ISO-8859-1\n"
55"Content-Transfer-Encoding: 8bit\n"
56"Plural-Forms: nplurals=2; plural=(n != 1);\n"
57
58#: married-men:4
59msgid "The world is full of married men"
60msgstr ""
61
62#: married-men:5
63msgid "with wives who never understand"
64msgstr "und ihre Frauen verstehen sie nicht"
65
66#: married-men:6
67msgid "They're looking for someone to share"
68msgstr ""
69
70#, c-format
71msgid "One file deleted."
72msgid_plural "%u files deleted."
73msgstr[0] ""
74msgstr[1] ""
75
76#~ msgid "You fly on the wings of romance"
77#~ msgstr "Die Fl�gel der frischen Liebe heben dich zum Himmel"
78
79#~ msgid "In the eyes of the world"
80#~ msgstr "F�r die anderen"
81EOF
82
83: ${DIFF=diff}
84${DIFF} ma-test19.ok ma-test19.out
85result=$?
86
87exit $result
88