#! /bin/sh
+. "${srcdir=.}/init.sh"; path_prepend_ . ../src
# Test pseudo-comments containing filenames that start with a digit.
-tmpfiles=""
-trap 'rm -fr $tmpfiles' 1 2 3 15
-
-tmpfiles="$tmpfiles mm-test15.pot mm-test15.po"
cat <<\EOF > mm-test15.pot
msgid ""
msgstr ""
msgstr ""
EOF
-tmpfiles="$tmpfiles mm-test15.tmp mm-test15.out"
: ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-test15.tmp mm-test15.pot mm-test15.po
-test $? = 0 || { rm -fr $tmpfiles; exit 1; }
-LC_ALL=C tr -d '\r' < mm-test15.tmp > mm-test15.out
-test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+${MSGMERGE} -q -o mm-test15.tmp mm-test15.pot mm-test15.po || exit 1
+LC_ALL=C tr -d '\r' < mm-test15.tmp > mm-test15.out || exit 1
-tmpfiles="$tmpfiles mm-test15.ok"
cat <<\EOF > mm-test15.ok
msgid ""
msgstr ""
${DIFF} mm-test15.ok mm-test15.out
result=$?
-rm -fr $tmpfiles
-
exit $result