Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / msgcomm-23
1 #! /bin/sh
2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4 # "msgcomm INPUT INPUT" is equivalent to "msguniq INPUT"
5
6 cp "$abs_srcdir"/msguniq-a.in mcomm-23.in1
7 cp "$abs_srcdir"/msguniq-a.in mcomm-23.in2
8
9 : ${MSGCOMM=msgcomm}
10 ${MSGCOMM} -w 1000 -o mcomm-23.tmp mcomm-23.in1 mcomm-23.in2 || exit 1
11 LC_ALL=C tr -d '\r' < mcomm-23.tmp > mcomm-23.out || exit 1
12
13 : ${DIFF=diff}
14 ${DIFF} "$abs_srcdir"/msguniq-a.out mcomm-23.out
15 result=$?
16
17 exit $result