This is the mail archive of the docbook-tools-discuss@sources.redhat.com mailing list for the docbook-tools project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Name of temporary files causes erratic behaviour


Hi,

http://bugs.debian.org/171985

/usr/share/sgml/docbook/utils-0.6.12/backends/dvi contains this part:

-----------------------------------------------------------------------------
[...]
# Convert from TeX to DVI
jadetex ${SGML_FILE_NAME}.tex >${SGML_FILE_NAME}.out
if [ $? -ne 0 ]
then
  cat ${SGML_FILE_NAME}.out
  rm ${SGML_FILE_NAME}.out
  rm ${SGML_FILE_NAME}.tex
  exit 2
fi
rm ${SGML_FILE_NAME}.out
[...]
-----------------------------------------------------------------------------

Since (jade)tex for some reason uses the foo.out file for itself, tex
tries to read it and unsurprisingly stumbles over it, since this dvi
script redirects log output to it (line 2 above).

The erratic behaviour goes away immediately if I replace all '.out'
occurences in the dvi script by something else, e.g. '.out1'.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]