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