2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test recognition of duplicates.
6 cat <<EOF > mm-test2.in1
9 msgid "2" msgstr "ha ha"
12 cat <<EOF > mm-test2.in2
18 : ${MSGMERGE=msgmerge}
19 LC_MESSAGES=C LC_ALL= \
20 ${MSGMERGE} -q -o /dev/stdout mm-test2.in1 mm-test2.in2 \
21 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgmerge\.exe|msgmerge|' -e 's|^msgmerge\.exe|msgmerge|' | LC_ALL=C tr -d '\r' > mm-test2.out
23 cat << EOF > mm-test2.ok
24 mm-test2.in1:3: duplicate message definition...
25 mm-test2.in1:1: ...this is the location of the first definition
26 msgmerge: found 1 fatal error
30 ${DIFF} mm-test2.ok mm-test2.out