• 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# Verify that msgcat complains when it would need to change msgids.
4
5tmpfiles=""
6trap 'rm -fr $tmpfiles' 1 2 3 15
7
8tmpfiles="$tmpfiles mcat-test12.in1 mcat-test12.in2"
9cat <<\EOF > mcat-test12.in1
10msgid ""
11msgstr ""
12"Content-Type: text/plain; charset=UTF-8\n"
13"Content-Transfer-Encoding: 8bit\n"
14
15#. Denote a lock's state
16msgid "Open"
17msgstr "Ouverte"
18
19#. Denote a lock's state
20msgid "Closed"
21msgstr "Ferm��e"
22EOF
23
24cat <<\EOF > mcat-test12.in2
25msgid ""
26msgstr ""
27"Content-Type: text/plain; charset=ISO-8859-1\n"
28"Content-Transfer-Encoding: 8bit\n"
29
30#. Denote a lock's state
31msgid "Open"
32msgstr "Ouvert"
33
34#. Denote a lock's state
35msgid "Closed"
36msgstr "Ferm�"
37
38#. A product
39msgid "Audi car"
40msgstr "voiture Audi"
41
42#. A product
43msgid "Oc� copier"
44msgstr "photocopieur Oc�"
45EOF
46
47tmpfiles="$tmpfiles mcat-test12.out"
48rm -f mcat-test12.out
49: ${MSGCAT=msgcat}
50${MSGCAT} -o mcat-test12.out mcat-test12.in1 mcat-test12.in2 2>/dev/null
51test $? = 1 || { rm -fr $tmpfiles; exit 1; }
52
53rm -fr $tmpfiles
54
55exit 0
56