~ubuntu-branches/ubuntu/breezy/gettext/breezy

« back to all changes in this revision

Viewing changes to tests/msgmerge-4

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2002-04-10 13:17:42 UTC
  • Revision ID: james.westby@ubuntu.com-20020410131742-npf89tsaygdolprj
Tags: upstream-0.10.40
ImportĀ upstreamĀ versionĀ 0.10.40

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
trap 'rm -fr $tmpfiles' 1 2 3 15
 
4
 
 
5
tmpfiles="mm-test4.in1.po mm-test4.in2.po"
 
6
cat <<EOF > mm-test4.in1.po
 
7
msgid "one"
 
8
msgstr "eins"
 
9
# This comment should be copied.
 
10
msgid "two"
 
11
msgstr "zwei"
 
12
 
 
13
 
 
14
# And this one, too.
 
15
#~ msgid "four"
 
16
#~ msgstr "vier"
 
17
EOF
 
18
 
 
19
cat <<EOF > mm-test4.in2.po
 
20
msgid "one"
 
21
msgstr ""
 
22
# This is a comment in the POT file.
 
23
msgid "three"
 
24
msgstr ""
 
25
EOF
 
26
 
 
27
tmpfiles="$tmpfiles mm-test4.out"
 
28
: ${MSGMERGE=msgmerge}
 
29
${MSGMERGE} -q mm-test4.in1.po mm-test4.in2.po -o mm-test4.out
 
30
 
 
31
tmpfiles="$tmpfiles mm-test4.ok"
 
32
cat <<EOF > mm-test4.ok
 
33
msgid "one"
 
34
msgstr "eins"
 
35
 
 
36
# This is a comment in the POT file.
 
37
msgid "three"
 
38
msgstr ""
 
39
 
 
40
# This comment should be copied.
 
41
#~ msgid "two"
 
42
#~ msgstr "zwei"
 
43
 
 
44
# And this one, too.
 
45
#~ msgid "four"
 
46
#~ msgstr "vier"
 
47
EOF
 
48
 
 
49
: ${DIFF=diff}
 
50
${DIFF} mm-test4.ok mm-test4.out
 
51
result=$?
 
52
 
 
53
rm -fr $tmpfiles
 
54
 
 
55
exit $result