1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test --omit-header option when there is a header. 5 6cat <<EOF > mcomm-test5.in1 7msgid "" 8msgstr "" 9"Project-Id-Version: GNU one 1.2.3\n" 10"POT-Creation-Date: 2000-12-11 20:49+0100\n" 11"PO-Revision-Date: 2000-03-18 15:25+01:00\n" 12"Last-Translator: Karl Eichwalder <ke@suse.de>\n" 13"Language-Team: German <de@li.org>\n" 14"MIME-Version: 1.0\n" 15"Content-Type: text/plain; charset=iso-8859-1\n" 16"Content-Transfer-Encoding: 8bit\n" 17 18#: first.c:123 19msgid "1" 20msgstr "1x" 21EOF 22 23cat <<EOF > mcomm-test5.in2 24#: hunt.c:759 25msgid "2" 26msgstr "2x" 27EOF 28 29: ${MSGCOMM=msgcomm} 30${MSGCOMM} --more-than=0 --omit-header -o mcomm-test5.tmp \ 31 mcomm-test5.in1 mcomm-test5.in2 || Exit 1 32LC_ALL=C tr -d '\r' < mcomm-test5.tmp > mcomm-test5.out || Exit 1 33 34cat << EOF > mcomm-test5.ok 35#: first.c:123 36msgid "1" 37msgstr "1x" 38 39#: hunt.c:759 40msgid "2" 41msgstr "2x" 42EOF 43 44: ${DIFF=diff} 45${DIFF} mcomm-test5.ok mcomm-test5.out 46result=$? 47 48exit $result 49