1#! /bin/sh 2 3# Test --more-than=0 option with Java .properties syntax. 4 5tmpfiles="" 6trap 'rm -fr $tmpfiles' 1 2 3 15 7 8tmpfiles="$tmpfiles mcomm-test24.in1 mcomm-test24.in2" 9cat <<EOF > mcomm-test24.in1 10#: first.c:123 111=1x 12EOF 13 14cat <<EOF > mcomm-test24.in2 15#: hunt.c:759 162=2x 17EOF 18 19tmpfiles="$tmpfiles mcomm-test24.out" 20: ${MSGCOMM=msgcomm} 21${MSGCOMM} --more-than=0 --properties-input --properties-output -o mcomm-test24.out mcomm-test24.in1 mcomm-test24.in2 22test $? = 0 || { rm -fr $tmpfiles; exit 1; } 23 24tmpfiles="$tmpfiles mcomm-test24.ok" 25cat << EOF > mcomm-test24.ok 26#: first.c:123 271=1x 28 29#: hunt.c:759 302=2x 31EOF 32 33: ${DIFF=diff} 34${DIFF} mcomm-test24.ok mcomm-test24.out 35result=$? 36 37rm -fr $tmpfiles 38 39exit $result 40