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