1#! /bin/sh
2. "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4# Test --more-than=0; identical message are wanted once only.
5# If the first occurrence is not fuzzy, don't make the result fuzzy.
6
7cat <<EOF > mcomm-test20.in1
8# Sure.
9#: first.c:123
10msgid "1"
11msgstr "1x"
12EOF
13
14cat <<EOF > mcomm-test20.in2
15# Not sure.
16#: hunt.c:759
17#, fuzzy
18msgid "1"
19msgstr "1x"
20EOF
21
22: ${MSGCOMM=msgcomm}
23${MSGCOMM} --more-than=0 -o mcomm-test20.tmp \
24    mcomm-test20.in1 mcomm-test20.in2 || Exit 1
25LC_ALL=C tr -d '\r' < mcomm-test20.tmp > mcomm-test20.out || Exit 1
26
27cat << EOF > mcomm-test20.ok
28# Sure.
29#: first.c:123 hunt.c:759
30msgid "1"
31msgstr "1x"
32EOF
33
34: ${DIFF=diff}
35${DIFF} mcomm-test20.ok mcomm-test20.out
36result=$?
37
38exit $result
39