1#! /bin/sh
2
3# Verify that msgcat leaves #: lines in place even if they have a bizarre
4# syntax.
5
6tmpfiles=""
7trap 'rm -fr $tmpfiles' 1 2 3 15
8
9tmpfiles="$tmpfiles mcat-test11.in"
10cat <<\EOF > mcat-test11.in
11#: basctl/source\basicide\basidesh.src#RID_STR_NOMODULE.text
12msgid "Simple"
13msgstr "Einfach"
14
15#: basctl/source\basicide\basidesh.src:RID_STR_NOMODULE.text
16msgid "Different"
17msgstr "Anders"
18
19#: file:4
20msgid "where"
21msgstr "wo"
22
23#: line:4
24msgid "what"
25msgstr "was"
26
27#: number:4
28msgid "who"
29msgstr "wer"
30
31#: foobar:4a
32msgid "whenever"
33msgstr "immer"
34EOF
35
36tmpfiles="$tmpfiles mcat-test11.out"
37: ${MSGCAT=msgcat}
38${MSGCAT} mcat-test11.in -o mcat-test11.out
39test $? = 0 || { rm -fr $tmpfiles; exit 1; }
40
41: ${DIFF=diff}
42${DIFF} mcat-test11.in mcat-test11.out
43result=$?
44
45rm -fr $tmpfiles
46
47exit $result
48