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