blob: a8662707924b9dcc9ce95f8aa4e2884e5d18be5e (
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
|