No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgcomm-23
blob619f1e4eece1388052c28a5952d41eccfca97652
1 #! /bin/sh
3 # "msgcomm INPUT INPUT" is equivalent to "msguniq INPUT"
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mcomm-23.in1 mcomm-23.in2"
9 cp ${top_srcdir}/tests/msguniq-a.in mcomm-23.in1
10 cp ${top_srcdir}/tests/msguniq-a.in mcomm-23.in2
12 tmpfiles="$tmpfiles mcomm-23.out"
13 : ${MSGCOMM=msgcomm}
14 ${MSGCOMM} -w 1000 mcomm-23.in1 mcomm-23.in2 -o mcomm-23.out
15 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
17 : ${DIFF=diff}
18 ${DIFF} ${top_srcdir}/tests/msguniq-a.out mcomm-23.out
19 result=$?
21 rm -fr $tmpfiles
23 exit $result