No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgmerge-compendium-1
bloba150e1eda22ec10341e42262a97d7d581e8ef230
1 #! /bin/sh
3 # Test compendium option.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mm-c-1.in1 mm-c-1.com mm-c-1.pot"
9 cat <<EOF > mm-c-1.in1
10 #: file.c:123
11 msgid "1"
12 msgstr "1x"
13 EOF
15 cat <<EOF > mm-c-1.com
16 #: file.c:345
17 msgid "2"
18 msgstr "2x"
19 EOF
21 cat <<EOF > mm-c-1.pot
22 #: file.c:123
23 msgid "1"
24 msgstr ""
26 #: file.c:345
27 msgid "2"
28 msgstr ""
29 EOF
31 tmpfiles="$tmpfiles mm-c-1.out"
32 : ${MSGMERGE=msgmerge}
33 ${MSGMERGE} -q -C mm-c-1.com mm-c-1.in1 mm-c-1.pot -o mm-c-1.out
34 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
36 tmpfiles="$tmpfiles mm-c-1.ok"
37 cat << EOF > mm-c-1.ok
38 #: file.c:123
39 msgid "1"
40 msgstr "1x"
42 #: file.c:345
43 msgid "2"
44 msgstr "2x"
45 EOF
47 : ${DIFF=diff}
48 ${DIFF} mm-c-1.ok mm-c-1.out
49 result=$?
51 rm -fr $tmpfiles
53 exit $result