1#! /bin/sh
2. "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4# Test --add-location=file option.
5
6cat <<\EOF > msguniq-7.in
7#: foo:1
8msgid "foo"
9msgstr ""
10
11#: bar:1
12msgid "foo"
13msgstr ""
14EOF
15
16: ${MSGUNIQ-msguniq}
17${MSGUNIQ} --add-location=file -o msguniq-7.tmp msguniq-7.in || Exit 1
18LC_ALL=C tr -d '\r' < msguniq-7.tmp > msguniq-7.out || Exit 1
19
20cat <<\EOF > msguniq-7.ok
21#: foo bar
22msgid "foo"
23msgstr ""
24EOF
25
26: ${DIFF=diff}
27${DIFF} msguniq-7.ok msguniq-7.out
28result=$?
29
30exit $result
31