1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Duplicates are also fatal in obsolete marked entries. 5 6cat <<EOF > mf-test9.in1 7# SOME DESCRIPTIVE TITLE. 8# Copyright (C) YEAR Free Software Foundation, Inc. 9# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 10# 11msgid "" 12msgstr "" 13"Project-Id-Version: msgfmt test 9\n" 14"PO-Revision-Date: 1996-04-05 19:47+0200\n" 15"Last-Translator: ABC DEF <abc@gnu.uucp>\n" 16"Language-Team: test <test@li.org>\n" 17"MIME-Version: 1.0\n" 18"Content-Type: text/plain; charset=ISO-8859-1\n" 19"Content-Transfer-Encoding: 8bit\n" 20# 21msgid "2" msgstr "2" 22msgid "3" msgstr "3" 23#~ msgid 24#~ "2" 25#~ msgstr 26#~ "ha ha" 27EOF 28 29: ${MSGFMT=msgfmt} 30LC_MESSAGES=C LC_ALL= \ 31${MSGFMT} --verbose --check mf-test9.in1 -o /dev/null \ 32 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgfmt\.exe|msgfmt|' -e 's|^msgfmt\.exe|msgfmt|' -e 's|^/cygdrive/[^ ]*/msgfmt|msgfmt|' | LC_ALL=C tr -d '\r' > mf-test9.err 33 34cat << EOF > mf-test9.ok 35mf-test9.in1:17: duplicate message definition... 36mf-test9.in1:15: ...this is the location of the first definition 37msgfmt: found 1 fatal error 38EOF 39 40: ${DIFF=diff} 41${DIFF} mf-test9.ok mf-test9.err 42result=$? 43 44exit $result 45