|
Packit Bot |
06c835 |
#! /bin/sh
|
|
Packit Bot |
06c835 |
. "${srcdir=.}/init.sh"; path_prepend_ . ../src
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
# Test of an external command with Java .properties syntax.
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
cat <<\EOF > mex-test3.properties
|
|
Packit Bot |
06c835 |
# HEADER.
|
|
Packit Bot |
06c835 |
#
|
|
Packit Bot |
06c835 |
!=Project-Id-Version\: Bonnie Tyler\n
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
#: married-men:4
|
|
Packit Bot |
06c835 |
#, fuzzy
|
|
Packit Bot |
06c835 |
!The\ world\ is\ full\ of\ married\ men=So viele verheiratete M\u00e4nner
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
#: married-men:5
|
|
Packit Bot |
06c835 |
with\ wives\ who\ never\ understand=und ihre Frauen verstehen sie nicht
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
#: married-men:6
|
|
Packit Bot |
06c835 |
!They're\ looking\ for\ someone\ to\ share=
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
# schwer zu \u00fcbersetzen...
|
|
Packit Bot |
06c835 |
#: married-men:7
|
|
Packit Bot |
06c835 |
!the\ excitement\ of\ a\ love\ affair=
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
#: married-men:8
|
|
Packit Bot |
06c835 |
!Just\ as\ soon\ as\ they\ find\ you=
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
#: married-men:9
|
|
Packit Bot |
06c835 |
!They\ warn\ you\ and\ darn\ you=
|
|
Packit Bot |
06c835 |
EOF
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
cat <<\EOF > mex-test3.sh
|
|
Packit Bot |
06c835 |
#! /bin/sh
|
|
Packit Bot |
06c835 |
echo "========================= $MSGEXEC_LOCATION =========================" | LC_ALL=C tr -d '\r'
|
|
Packit Bot |
06c835 |
cat <
|
|
Packit Bot |
06c835 |
$MSGEXEC_MSGID
|
|
Packit Bot |
06c835 |
---
|
|
Packit Bot |
06c835 |
MEOF
|
|
Packit Bot |
06c835 |
cat
|
|
Packit Bot |
06c835 |
echo | LC_ALL=C tr -d '\r'
|
|
Packit Bot |
06c835 |
exit 0
|
|
Packit Bot |
06c835 |
EOF
|
|
Packit Bot |
06c835 |
chmod a+x mex-test3.sh
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
: ${MSGEXEC=msgexec}
|
|
Packit Bot |
06c835 |
${MSGEXEC} --properties-input -i mex-test3.properties ./mex-test3.sh > mex-test3.out || exit 1
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
cat <<\EOF > mex-test3.ok
|
|
Packit Bot |
06c835 |
========================= mex-test3.properties:3 =========================
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
---
|
|
Packit Bot |
06c835 |
Project-Id-Version: Bonnie Tyler
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
========================= mex-test3.properties:7 =========================
|
|
Packit Bot |
06c835 |
The world is full of married men
|
|
Packit Bot |
06c835 |
---
|
|
Packit Bot |
06c835 |
So viele verheiratete Männer
|
|
Packit Bot |
06c835 |
========================= mex-test3.properties:10 =========================
|
|
Packit Bot |
06c835 |
with wives who never understand
|
|
Packit Bot |
06c835 |
---
|
|
Packit Bot |
06c835 |
und ihre Frauen verstehen sie nicht
|
|
Packit Bot |
06c835 |
========================= mex-test3.properties:13 =========================
|
|
Packit Bot |
06c835 |
They're looking for someone to share
|
|
Packit Bot |
06c835 |
---
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
========================= mex-test3.properties:17 =========================
|
|
Packit Bot |
06c835 |
the excitement of a love affair
|
|
Packit Bot |
06c835 |
---
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
========================= mex-test3.properties:20 =========================
|
|
Packit Bot |
06c835 |
Just as soon as they find you
|
|
Packit Bot |
06c835 |
---
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
========================= mex-test3.properties:23 =========================
|
|
Packit Bot |
06c835 |
They warn you and darn you
|
|
Packit Bot |
06c835 |
---
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
EOF
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
: ${DIFF=diff}
|
|
Packit Bot |
06c835 |
${DIFF} mex-test3.ok mex-test3.out
|
|
Packit Bot |
06c835 |
result=$?
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
exit $result
|