• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/gettext-0.17/gettext-tools/tests/
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