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