+#
+# Create a temporary file for stderr
+#
+# Note, this file is used because sometime mtx emits
+# unexpected error messages followed by the output
+# expected during success.
+# So we separate STDOUT and STDERR in
+# certain of the mtx commands. The contents of STDERR
+# is then printed after the STDOUT produced by mtx
+# thus we sometimes get better changer results.
+#
+make_err_file() {
+ ERRFILE=`mktemp @working_dir@/mtx.err.XXXXXXXXXX`
+ if test x${ERRFILE} = x; then
+ ERRFILE="@working_dir@/mtx.err.$$"
+ if test -f ${ERRFILE}; then
+ echo "ERROR: Temp file security problem on: ${ERRFILE}"
+ exit 1
+ fi
+ fi
+}
+
+