1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test msgattrib option --clear-previous. 5 6cat <<\EOF > ma-test17.po 7msgid "" 8msgstr "" 9"Report-Msgid-Bugs-To: \n" 10"Content-Type: text/plain; charset=UTF-8\n" 11"Content-Transfer-Encoding: 8bit\n" 12 13#. TRANSLATORS: An error message. 14#: src/args.c:242 15#, fuzzy, c-format 16#| msgid "too many arguments" 17msgid "Too many arguments." 18msgstr "zu viele Argumente" 19 20#. TRANSLATORS: An error message. 21#: src/args.c:247 22#, fuzzy, c-format 23#| msgid "too many arguments" 24msgid "Too few arguments." 25msgstr "zu viele Argumente" 26 27# Oder besser "fehlende Argumente"? 28#. TRANSLATORS: An error message. 29#: src/args.c:273 30#, c-format 31#| msgid "missing arguments" 32msgid "Missing arguments." 33msgstr "Argumente fehlen." 34 35#, fuzzy 36#~| msgid "%s: invalid option -- %c\n" 37#~ msgid "%s: illegal option -- %c\n" 38#~ msgstr "%s: ungültige Option -- %c\n" 39 40#~ msgid "%s: invalid option -- %c\n" 41#~ msgstr "%s: ungültige Option -- %c\n" 42EOF 43 44: ${MSGATTRIB=msgattrib} 45${MSGATTRIB} --clear-previous -o ma-test17.tmp ma-test17.po || Exit 1 46LC_ALL=C tr -d '\r' < ma-test17.tmp > ma-test17.out || Exit 1 47 48cat <<\EOF > ma-test17.ok 49msgid "" 50msgstr "" 51"Report-Msgid-Bugs-To: \n" 52"Content-Type: text/plain; charset=UTF-8\n" 53"Content-Transfer-Encoding: 8bit\n" 54 55#. TRANSLATORS: An error message. 56#: src/args.c:242 57#, fuzzy, c-format 58msgid "Too many arguments." 59msgstr "zu viele Argumente" 60 61#. TRANSLATORS: An error message. 62#: src/args.c:247 63#, fuzzy, c-format 64msgid "Too few arguments." 65msgstr "zu viele Argumente" 66 67# Oder besser "fehlende Argumente"? 68#. TRANSLATORS: An error message. 69#: src/args.c:273 70#, c-format 71msgid "Missing arguments." 72msgstr "Argumente fehlen." 73 74#, fuzzy 75#~ msgid "%s: illegal option -- %c\n" 76#~ msgstr "%s: ungültige Option -- %c\n" 77 78#~ msgid "%s: invalid option -- %c\n" 79#~ msgstr "%s: ungültige Option -- %c\n" 80EOF 81 82: ${DIFF=diff} 83${DIFF} ma-test17.ok ma-test17.out 84result=$? 85 86exit $result 87