No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgmerge-compendium-2
blob2a6f0f722e0e973e40783c8da718e9cfcbb0ac36
1 #! /bin/sh
3 # Test compendium option with fuzziness.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mm-c-2.in1 mm-c-2.com mm-c-2.pot"
9 cat <<EOF > mm-c-2.in1
10 #: file.c:123
11 msgid "1"
12 msgstr "1x"
13 EOF
15 cat <<EOF > mm-c-2.com
16 #: file.c:345
17 msgid "one, two, three"
18 msgstr "1, 2, 3"
19 EOF
21 cat <<EOF > mm-c-2.pot
22 #: file.c:123
23 msgid "1"
24 msgstr ""
26 #: file.c:345
27 msgid "one, two, three..."
28 msgstr ""
29 EOF
31 tmpfiles="$tmpfiles mm-c-2.out"
32 : ${MSGMERGE=msgmerge}
33 ${MSGMERGE} -q -C mm-c-2.com mm-c-2.in1 mm-c-2.pot -o mm-c-2.out
34 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
36 tmpfiles="$tmpfiles mm-c-2.ok"
37 cat << EOF > mm-c-2.ok
38 #: file.c:123
39 msgid "1"
40 msgstr "1x"
42 #: file.c:345
43 #, fuzzy
44 msgid "one, two, three..."
45 msgstr "1, 2, 3"
46 EOF
48 : ${DIFF=diff}
49 ${DIFF} mm-c-2.ok mm-c-2.out
50 result=$?
52 rm -fr $tmpfiles
54 exit $result