• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/gettext-0.17/gettext-tools/tests/
1#! /bin/sh
2
3# Test a succeeding comparison.
4
5tmpfiles=""
6trap 'rm -fr $tmpfiles' 1 2 3 15
7
8tmpfiles="$tmpfiles mc-test1.in1 mc-test1.in2"
9cat <<EOF > mc-test1.in1
10msgid "one" msgstr "first"
11msgid "two" msgstr "second"
12msgid "three" msgstr "third"
13EOF
14
15cat <<EOF > mc-test1.in2
16msgid "three" msgstr ""
17msgid "one" msgstr ""
18msgid "two" msgstr ""
19EOF
20
21: ${MSGCMP=msgcmp}
22${MSGCMP} mc-test1.in1 mc-test1.in2 > /dev/null 2>&1
23result=$?
24
25rm -fr $tmpfiles
26
27exit $result
28