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