No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgfmt-12
blob427b83333f0cd64abb19100f833777f51618f440
1 #! /bin/sh
3 # Test ISO C 99 <inttypes.h> format string directives.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
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"
13 #, c-format
14 msgid "File size is: %<PRId64>"
15 msgstr "Dateigröße ist: %<PRId64>"
17 #, c-format
18 msgid "File age is %10<PRIdMAX> microseconds"
19 msgstr "Datei ist %10<PRIdMAX> Mikrosekunden alt."
21 msgid "<PRIXFAST16> errors"
22 msgstr "<PRIXFAST16> Fehler"
23 EOF
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; }
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; }
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"
40 msgid "<PRIXFAST16> errors"
41 msgstr "<PRIXFAST16> Fehler"
43 msgid "File size is: %<PRId64>"
44 msgstr "Dateigröße ist: %<PRId64>"
46 msgid "File age is %10<PRIdMAX> microseconds"
47 msgstr "Datei ist %10<PRIdMAX> Mikrosekunden alt."
48 EOF
50 : ${DIFF=diff}
51 ${DIFF} mf-12.ok mf-12.out
52 result=$?
54 rm -fr $tmpfiles
56 exit $result