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