1 1.1 christos #! /bin/sh 2 1.1 christos 3 1.1 christos # Test --no-location option. 4 1.1 christos 5 1.1 christos tmpfiles="" 6 1.1 christos trap 'rm -fr $tmpfiles' 1 2 3 15 7 1.1 christos 8 1.1 christos tmpfiles="$tmpfiles mcomm-test2.in1 mcomm-test2.in2" 9 1.1 christos cat <<EOF > mcomm-test2.in1 10 1.1 christos #: first.c:123 11 1.1 christos msgid "1" 12 1.1 christos msgstr "1x" 13 1.1 christos EOF 14 1.1 christos 15 1.1 christos cat <<EOF > mcomm-test2.in2 16 1.1 christos #: hunt.c:759 17 1.1 christos msgid "2" 18 1.1 christos msgstr "2x" 19 1.1 christos EOF 20 1.1 christos 21 1.1 christos tmpfiles="$tmpfiles mcomm-test2.out" 22 1.1 christos : ${MSGCOMM=msgcomm} 23 1.1 christos ${MSGCOMM} --more-than=0 --no-location -o mcomm-test2.out \ 24 1.1 christos mcomm-test2.in1 mcomm-test2.in2 25 1.1 christos test $? = 0 || { rm -fr $tmpfiles; exit 1; } 26 1.1 christos 27 1.1 christos tmpfiles="$tmpfiles mcomm-test2.ok" 28 1.1 christos cat << EOF > mcomm-test2.ok 29 1.1 christos msgid "1" 30 1.1 christos msgstr "1x" 31 1.1 christos 32 1.1 christos msgid "2" 33 1.1 christos msgstr "2x" 34 1.1 christos EOF 35 1.1 christos 36 1.1 christos : ${DIFF=diff} 37 1.1 christos ${DIFF} mcomm-test2.ok mcomm-test2.out 38 1.1 christos result=$? 39 1.1 christos 40 1.1 christos rm -fr $tmpfiles 41 1.1 christos 42 1.1 christos exit $result 43