~ubuntu-branches/ubuntu/trusty/gettext/trusty

« back to all changes in this revision

Viewing changes to tests/msgunfmt-1

  • 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="mu-test1.in"
 
6
cat <<EOF > mu-test1.in
 
7
msgid "eight"
 
8
msgstr "eighth"
 
9
 
 
10
msgid "five"
 
11
msgstr "fifth"
 
12
 
 
13
msgid "four"
 
14
msgstr "fourth"
 
15
 
 
16
msgid "one"
 
17
msgstr "first"
 
18
 
 
19
msgid "seven"
 
20
msgstr "seventh"
 
21
 
 
22
msgid "six"
 
23
msgstr "sixth"
 
24
 
 
25
msgid "three"
 
26
msgstr "third"
 
27
 
 
28
msgid "two"
 
29
msgstr "second"
 
30
EOF
 
31
 
 
32
tmpfiles="$tmpfiles mu-test1.mo"
 
33
: ${MSGFMT=msgfmt}
 
34
${MSGFMT} mu-test1.in -o mu-test1.mo
 
35
 
 
36
tmpfiles="$tmpfiles mu-test1.out"
 
37
: ${MSGUNFMT=msgunfmt}
 
38
${MSGUNFMT} mu-test1.mo -o mu-test1.out
 
39
 
 
40
: ${DIFF=diff}
 
41
${DIFF} mu-test1.in mu-test1.out
 
42
result=$?
 
43
 
 
44
rm -fr $tmpfiles
 
45
 
 
46
exit $result