#! /bin/sh # Test ISO C 99 format string directives. tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 tmpfiles="$tmpfiles mf-12.po" cat <<\EOF > mf-12.po msgid "" msgstr "Content-Type: text/plain; charset=ISO-8859-1\n" #, c-format msgid "File size is: %" msgstr "Dateigröße ist: %" #, c-format msgid "File age is %10 microseconds" msgstr "Datei ist %10 Mikrosekunden alt." msgid " errors" msgstr " Fehler" EOF tmpfiles="$tmpfiles mf-12.mo" : ${MSGFMT=msgfmt} ${MSGFMT} -o mf-12.mo mf-12.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mf-12.out" : ${MSGUNFMT=msgunfmt} ${MSGUNFMT} mf-12.mo -o mf-12.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mf-12.ok" cat <<\EOF > mf-12.ok msgid "" msgstr "Content-Type: text/plain; charset=ISO-8859-1\n" msgid " errors" msgstr " Fehler" msgid "File size is: %" msgstr "Dateigröße ist: %" msgid "File age is %10 microseconds" msgstr "Datei ist %10 Mikrosekunden alt." EOF : ${DIFF=diff} ${DIFF} mf-12.ok mf-12.out result=$? rm -fr $tmpfiles exit $result