• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2. "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4# Test --no-location option.
5
6cat <<EOF > mcomm-test2.in1
7#: first.c:123
8msgid "1"
9msgstr "1x"
10EOF
11
12cat <<EOF > mcomm-test2.in2
13#: hunt.c:759
14msgid "2"
15msgstr "2x"
16EOF
17
18: ${MSGCOMM=msgcomm}
19${MSGCOMM} --more-than=0 --no-location -o mcomm-test2.tmp \
20    mcomm-test2.in1 mcomm-test2.in2 || Exit 1
21LC_ALL=C tr -d '\r' < mcomm-test2.tmp > mcomm-test2.out || Exit 1
22
23cat << EOF > mcomm-test2.ok
24msgid "1"
25msgstr "1x"
26
27msgid "2"
28msgstr "2x"
29EOF
30
31: ${DIFF=diff}
32${DIFF} mcomm-test2.ok mcomm-test2.out
33result=$?
34
35exit $result
36