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