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