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