1 1.1 christos #! /bin/sh 2 1.1 christos 3 1.1 christos # "msgcomm INPUT INPUT" is equivalent to "msguniq INPUT" 4 1.1 christos 5 1.1 christos tmpfiles="" 6 1.1 christos trap 'rm -fr $tmpfiles' 1 2 3 15 7 1.1 christos 8 1.1 christos tmpfiles="$tmpfiles mcomm-23.in1 mcomm-23.in2" 9 1.1 christos cp ${top_srcdir}/tests/msguniq-a.in mcomm-23.in1 10 1.1 christos cp ${top_srcdir}/tests/msguniq-a.in mcomm-23.in2 11 1.1 christos 12 1.1 christos tmpfiles="$tmpfiles mcomm-23.out" 13 1.1 christos : ${MSGCOMM=msgcomm} 14 1.1 christos ${MSGCOMM} -w 1000 -o mcomm-23.out mcomm-23.in1 mcomm-23.in2 15 1.1 christos test $? = 0 || { rm -fr $tmpfiles; exit 1; } 16 1.1 christos 17 1.1 christos : ${DIFF=diff} 18 1.1 christos ${DIFF} ${top_srcdir}/tests/msguniq-a.out mcomm-23.out 19 1.1 christos result=$? 20 1.1 christos 21 1.1 christos rm -fr $tmpfiles 22 1.1 christos 23 1.1 christos exit $result 24