1*946379e7Schristos#! /bin/sh 2*946379e7Schristos 3*946379e7Schristos# Test --no-location option when there is a header. 4*946379e7Schristos 5*946379e7Schristostmpfiles="" 6*946379e7Schristostrap 'rm -fr $tmpfiles' 1 2 3 15 7*946379e7Schristos 8*946379e7Schristostmpfiles="$tmpfiles mcomm-test6.in1 mcomm-test6.in2" 9*946379e7Schristoscat <<EOF > mcomm-test6.in1 10*946379e7Schristosmsgid "" 11*946379e7Schristosmsgstr "" 12*946379e7Schristos"Project-Id-Version: GNU one 1.2.3\n" 13*946379e7Schristos"POT-Creation-Date: 2000-12-11 20:49+0100\n" 14*946379e7Schristos"PO-Revision-Date: 2000-03-18 15:25+01:00\n" 15*946379e7Schristos"Last-Translator: Karl Eichwalder <ke@suse.de>\n" 16*946379e7Schristos"Language-Team: German <de@li.org>\n" 17*946379e7Schristos"MIME-Version: 1.0\n" 18*946379e7Schristos"Content-Type: text/plain; charset=iso-8859-1\n" 19*946379e7Schristos"Content-Transfer-Encoding: 8bit\n" 20*946379e7Schristos 21*946379e7Schristos#: first.c:123 22*946379e7Schristosmsgid "1" 23*946379e7Schristosmsgstr "1x" 24*946379e7SchristosEOF 25*946379e7Schristos 26*946379e7Schristoscat <<EOF > mcomm-test6.in2 27*946379e7Schristos#: hunt.c:759 28*946379e7Schristosmsgid "2" 29*946379e7Schristosmsgstr "2x" 30*946379e7SchristosEOF 31*946379e7Schristos 32*946379e7Schristostmpfiles="$tmpfiles mcomm-test6.out" 33*946379e7Schristos: ${MSGCOMM=msgcomm} 34*946379e7Schristos${MSGCOMM} --more-than=0 --no-location -o mcomm-test6.out \ 35*946379e7Schristos mcomm-test6.in1 mcomm-test6.in2 36*946379e7Schristostest $? = 0 || { rm -fr $tmpfiles; exit 1; } 37*946379e7Schristos 38*946379e7Schristostmpfiles="$tmpfiles mcomm-test6.ok" 39*946379e7Schristoscat << EOF > mcomm-test6.ok 40*946379e7Schristosmsgid "" 41*946379e7Schristosmsgstr "" 42*946379e7Schristos"Project-Id-Version: GNU one 1.2.3\n" 43*946379e7Schristos"POT-Creation-Date: 2000-12-11 20:49+0100\n" 44*946379e7Schristos"PO-Revision-Date: 2000-03-18 15:25+01:00\n" 45*946379e7Schristos"Last-Translator: Karl Eichwalder <ke@suse.de>\n" 46*946379e7Schristos"Language-Team: German <de@li.org>\n" 47*946379e7Schristos"MIME-Version: 1.0\n" 48*946379e7Schristos"Content-Type: text/plain; charset=iso-8859-1\n" 49*946379e7Schristos"Content-Transfer-Encoding: 8bit\n" 50*946379e7Schristos 51*946379e7Schristosmsgid "1" 52*946379e7Schristosmsgstr "1x" 53*946379e7Schristos 54*946379e7Schristosmsgid "2" 55*946379e7Schristosmsgstr "2x" 56*946379e7SchristosEOF 57*946379e7Schristos 58*946379e7Schristos: ${DIFF=diff} 59*946379e7Schristos${DIFF} mcomm-test6.ok mcomm-test6.out 60*946379e7Schristosresult=$? 61*946379e7Schristos 62*946379e7Schristosrm -fr $tmpfiles 63*946379e7Schristos 64*946379e7Schristosexit $result 65