No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgcomm-24
blobc7c6a430954d6a2e3ff3bdb2ccbc5886209f46c5
1 #! /bin/sh
3 # Test --more-than=0 option with Java .properties syntax.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mcomm-test24.in1 mcomm-test24.in2"
9 cat <<EOF > mcomm-test24.in1
10 #: first.c:123
11 1=1x
12 EOF
14 cat <<EOF > mcomm-test24.in2
15 #: hunt.c:759
16 2=2x
17 EOF
19 tmpfiles="$tmpfiles mcomm-test24.out"
20 : ${MSGCOMM=msgcomm}
21 ${MSGCOMM} --more-than=0 --properties-input --properties-output -o mcomm-test24.out mcomm-test24.in1 mcomm-test24.in2
22 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
24 tmpfiles="$tmpfiles mcomm-test24.ok"
25 cat << EOF > mcomm-test24.ok
26 #: first.c:123
27 1=1x
29 #: hunt.c:759
30 2=2x
31 EOF
33 : ${DIFF=diff}
34 ${DIFF} mcomm-test24.ok mcomm-test24.out
35 result=$?
37 rm -fr $tmpfiles
39 exit $result