#! /bin/sh
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
tmpfiles="$tmpfiles mf-test4.po"
cat <<EOF >mf-test4.po
msgid ""
msgstr ""
"Project-Id-Version: msgfmt test 4\n"
"PO-Revision-Date: 1996-04-05 19:47+0200\n"
"Last-Translator: Ulrich Drepper <drepper@gnu.org>\n"
"Language-Team: test <test@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "no percent"
msgstr "but here %d is one"
msgid "in the %d normal %c order %s\n"
msgstr "but %2$c not %3$s here %1$d\n"
msgid "This is a string %s"
msgstr "...but this $s not"
EOF
: ${MSGFMT=msgfmt}
${MSGFMT} mf-test4.po -o /dev/null 2> /dev/null
result=$?
rm -fr $tmpfiles
exit $result