No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgcmp-1
blobdd7813783498d0e416049d47b45efec559537be4
1 #! /bin/sh
3 # Test a succeeding comparison.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mc-test1.in1 mc-test1.in2"
9 cat <<EOF > mc-test1.in1
10 msgid "one" msgstr "first"
11 msgid "two" msgstr "second"
12 msgid "three" msgstr "third"
13 EOF
15 cat <<EOF > mc-test1.in2
16 msgid "three" msgstr ""
17 msgid "one" msgstr ""
18 msgid "two" msgstr ""
19 EOF
21 : ${MSGCMP=msgcmp}
22 ${MSGCMP} mc-test1.in1 mc-test1.in2 > /dev/null 2>&1
23 result=$?
25 rm -fr $tmpfiles
27 exit $result