No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgcomm-1
blobfc3ca314a655fc9301fbfd6d581a36ba7abf7723
1 #! /bin/sh
3 # Test --more-than=0 option.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mcomm-test1.in1 mcomm-test1.in2"
9 cat <<EOF > mcomm-test1.in1
10 #: first.c:123
11 msgid "1"
12 msgstr "1x"
13 EOF
15 cat <<EOF > mcomm-test1.in2
16 #: hunt.c:759
17 msgid "2"
18 msgstr "2x"
19 EOF
21 tmpfiles="$tmpfiles mcomm-test1.out"
22 : ${MSGCOMM=msgcomm}
23 ${MSGCOMM} --more-than=0 -o mcomm-test1.out mcomm-test1.in1 mcomm-test1.in2
24 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
26 tmpfiles="$tmpfiles mcomm-test1.ok"
27 cat << EOF > mcomm-test1.ok
28 #: first.c:123
29 msgid "1"
30 msgstr "1x"
32 #: hunt.c:759
33 msgid "2"
34 msgstr "2x"
35 EOF
37 : ${DIFF=diff}
38 ${DIFF} mcomm-test1.ok mcomm-test1.out
39 result=$?
41 rm -fr $tmpfiles
43 exit $result