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