No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgcomm-21
blobf97ddd5b114c2508904441216934dc5c4021f3d0
1 #! /bin/sh
3 # Test --more-than=0; identical message are wanted once only.
4 # If both occurrences are fuzzy, keep the fuzzy mark.
6 tmpfiles=""
7 trap 'rm -fr $tmpfiles' 1 2 3 15
9 tmpfiles="$tmpfiles mcomm-test21.in1 mcomm-test21.in2"
10 cat <<EOF > mcomm-test21.in1
11 # Not sure.
12 #: first.c:123
13 #, fuzzy
14 msgid "1"
15 msgstr "1x"
16 EOF
18 cat <<EOF > mcomm-test21.in2
19 # Doubt.
20 #: hunt.c:759
21 #, fuzzy
22 msgid "1"
23 msgstr "1x"
24 EOF
26 tmpfiles="$tmpfiles mcomm-test21.out"
27 : ${MSGCOMM=msgcomm}
28 ${MSGCOMM} --more-than=0 mcomm-test21.in1 mcomm-test21.in2 -o mcomm-test21.out
29 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
31 tmpfiles="$tmpfiles mcomm-test21.ok"
32 cat << EOF > mcomm-test21.ok
33 # Not sure.
34 #: first.c:123 hunt.c:759
35 #, fuzzy
36 msgid "1"
37 msgstr "1x"
38 EOF
40 : ${DIFF=diff}
41 ${DIFF} mcomm-test21.ok mcomm-test21.out
42 result=$?
44 rm -fr $tmpfiles
46 exit $result