No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgcomm-18
blob20b45eb6c698743bf25b0adbf0a27b100f3ce7cb
1 #! /bin/sh
3 # Test --more-than=0; identical message are wanted once only.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mcomm-test18.in1 mcomm-test18.in2"
9 cat <<EOF > mcomm-test18.in1
10 # Sure.
11 #: first.c:123
12 msgid "1"
13 msgstr "1x"
14 EOF
16 cat <<EOF > mcomm-test18.in2
17 # Right.
18 #: hunt.c:759
19 msgid "1"
20 msgstr "1x"
21 EOF
23 tmpfiles="$tmpfiles mcomm-test18.out"
24 : ${MSGCOMM=msgcomm}
25 ${MSGCOMM} --more-than=0 mcomm-test18.in1 mcomm-test18.in2 -o mcomm-test18.out
26 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
28 tmpfiles="$tmpfiles mcomm-test18.ok"
29 cat << EOF > mcomm-test18.ok
30 # Sure.
31 #: first.c:123 hunt.c:759
32 msgid "1"
33 msgstr "1x"
34 EOF
36 : ${DIFF=diff}
37 ${DIFF} mcomm-test18.ok mcomm-test18.out
38 result=$?
40 rm -fr $tmpfiles
42 exit $result