• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2. "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4# Test compendium option.
5
6cat <<EOF > mm-c-1.in1
7#: file.c:123
8msgid "1"
9msgstr "1x"
10EOF
11
12cat <<EOF > mm-c-1.com
13#: file.c:345
14msgid "2"
15msgstr "2x"
16EOF
17
18cat <<EOF > mm-c-1.pot
19#: file.c:123
20msgid "1"
21msgstr ""
22
23#: file.c:345
24msgid "2"
25msgstr ""
26EOF
27
28: ${MSGMERGE=msgmerge}
29${MSGMERGE} -q -C mm-c-1.com -o mm-c-1.tmp mm-c-1.in1 mm-c-1.pot || Exit 1
30LC_ALL=C tr -d '\r' < mm-c-1.tmp > mm-c-1.out || Exit 1
31
32cat << EOF > mm-c-1.ok
33#: file.c:123
34msgid "1"
35msgstr "1x"
36
37#: file.c:345
38msgid "2"
39msgstr "2x"
40EOF
41
42: ${DIFF=diff}
43${DIFF} mm-c-1.ok mm-c-1.out
44result=$?
45
46exit $result
47