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