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

« back to all changes in this revision

Viewing changes to gettext-tools/tests/msgfmt-12

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-03-14 17:40:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040314174002-p1ad5ldve1hqzhye
Tags: 0.14.1-2
* Added libexpat1-dev to Build-Depends, for glade support.
* Added libc0.1-dev to Build-Depends, for GNU/kFreeBSD.
* Removed special-casing of knetbsd-gnu in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# Test ISO C 99 <inttypes.h> format string directives.
 
4
 
 
5
tmpfiles=""
 
6
trap 'rm -fr $tmpfiles' 1 2 3 15
 
7
 
 
8
tmpfiles="$tmpfiles mf-12.po"
 
9
cat <<\EOF > mf-12.po
 
10
msgid ""
 
11
msgstr "Content-Type: text/plain; charset=ISO-8859-1\n"
 
12
 
 
13
#, c-format
 
14
msgid "File size is: %<PRId64>"
 
15
msgstr "Dateigr��e ist: %<PRId64>"
 
16
 
 
17
#, c-format
 
18
msgid "File age is %10<PRIdMAX> microseconds"
 
19
msgstr "Datei ist %10<PRIdMAX> Mikrosekunden alt."
 
20
 
 
21
msgid "<PRIXFAST16> errors"
 
22
msgstr "<PRIXFAST16> Fehler"
 
23
EOF
 
24
 
 
25
tmpfiles="$tmpfiles mf-12.mo"
 
26
: ${MSGFMT=msgfmt}
 
27
${MSGFMT} -o mf-12.mo mf-12.po
 
28
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
29
 
 
30
tmpfiles="$tmpfiles mf-12.out"
 
31
: ${MSGUNFMT=msgunfmt}
 
32
${MSGUNFMT} mf-12.mo -o mf-12.out
 
33
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
34
 
 
35
tmpfiles="$tmpfiles mf-12.ok"
 
36
cat <<\EOF > mf-12.ok
 
37
msgid ""
 
38
msgstr "Content-Type: text/plain; charset=ISO-8859-1\n"
 
39
 
 
40
msgid "<PRIXFAST16> errors"
 
41
msgstr "<PRIXFAST16> Fehler"
 
42
 
 
43
msgid "File size is: %<PRId64>"
 
44
msgstr "Dateigr��e ist: %<PRId64>"
 
45
 
 
46
msgid "File age is %10<PRIdMAX> microseconds"
 
47
msgstr "Datei ist %10<PRIdMAX> Mikrosekunden alt."
 
48
EOF
 
49
 
 
50
: ${DIFF=diff}
 
51
${DIFF} mf-12.ok mf-12.out
 
52
result=$?
 
53
 
 
54
rm -fr $tmpfiles
 
55
 
 
56
exit $result