No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgcat-properties-1
blob9662a5ec2cf28419b670a61561c7f6bc2262d5e6
1 #! /bin/sh
3 # Test --use-first option with Java .properties syntax.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mcat-p-1.in1 mcat-p-1.in2"
9 cat <<\EOF > mcat-p-1.in1
10 #. Help text (HTML-like) START
11 #: clients/inst_ask_config.ycp:119
12 Congratulations\!=Gl\u00fcckwunsch\!
13 EOF
15 cat <<\EOF > mcat-p-1.in2
16 #. Help text (HTML-like) START
17 #: clients/inst_ask_config.ycp:119
18 Congratulations\!=Herzlichen Gl\u00fcckwunsch\!
19 EOF
21 tmpfiles="$tmpfiles mcat-p-1.out"
22 rm -f mcat-p-1.out
24 : ${MSGCAT=msgcat}
25 ${MSGCAT} --use-first --more-than=0 --properties-input --properties-output \
26 mcat-p-1.in1 mcat-p-1.in2 -o mcat-p-1.out
27 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
29 tmpfiles="$tmpfiles mcat-p-1.ok"
30 cat << \EOF > mcat-p-1.ok
31 #. Help text (HTML-like) START
32 #: clients/inst_ask_config.ycp:119
33 Congratulations\!=Gl\u00fcckwunsch\!
34 EOF
36 : ${DIFF=diff}
37 ${DIFF} mcat-p-1.ok mcat-p-1.out
38 result=$?
40 rm -fr $tmpfiles
42 exit $result