3 # Test of an external command with Java .properties syntax.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles mex-test3.properties"
9 cat <<\EOF
> mex-test3.properties
12 !=Project-Id-Version\
: Bonnie Tyler
\n
16 !The\ world\ is\ full\ of\ married\ men
=So viele verheiratete M
\u00e4nner
19 with\ wives\ who\ never\ understand
=und ihre Frauen verstehen sie nicht
22 !They
're\ looking\ for\ someone\ to\ share=
24 # schwer zu \u00fcbersetzen...
26 !the\ excitement\ of\ a\ love\ affair=
29 !Just\ as\ soon\ as\ they\ find\ you=
32 !They\ warn\ you\ and\ darn\ you=
35 tmpfiles="$tmpfiles mex-test3.sh"
36 cat <<\EOF > mex-test3.sh
38 echo "========================= $MSGEXEC_LOCATION ========================="
47 chmod a+x mex-test3.sh
49 tmpfiles="$tmpfiles mex-test3.out"
51 ${MSGEXEC} --properties-input -i mex-test3.properties ./mex-test3.sh > mex-test3.out
52 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
54 tmpfiles="$tmpfiles mex-test3.ok"
55 cat <<\EOF > mex-test3.ok
56 ========================= mex-test3.properties:3 =========================
59 Project-Id-Version: Bonnie Tyler
61 ========================= mex-test3.properties:7 =========================
62 The world is full of married men
64 So viele verheiratete Männer
65 ========================= mex-test3.properties:10 =========================
66 with wives who never understand
68 und ihre Frauen verstehen sie nicht
69 ========================= mex-test3.properties:13 =========================
70 They're looking
for someone to share
73 ========================= mex-test3.properties
:17 =========================
74 the excitement of a love affair
77 ========================= mex-test3.properties
:20 =========================
78 Just as soon as they
find you
81 ========================= mex-test3.properties
:23 =========================
82 They warn you and darn you
88 ${DIFF} mex-test3.ok mex-test3.out