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