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