3 # Test --use-first option with Java .properties syntax.
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\
!
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\
!
21 tmpfiles
="$tmpfiles mcat-p-1.out"
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\
!
37 ${DIFF} mcat-p-1.ok mcat-p-1.out