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