public inbox for docbook-tools-discuss@sourceware.org
 help / color / mirror / Atom feed
* Name of temporary files causes erratic behaviour
  2002-12-20 19:23 Name of temporary files causes erratic behaviour Christian Marillat
@ 2002-12-06  6:17 ` Christian Marillat
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Marillat @ 2002-12-06  6:17 UTC (permalink / raw)
  To: docbook-tools-discuss

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'.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Name of temporary files causes erratic behaviour
@ 2002-12-20 19:23 Christian Marillat
  2002-12-06  6:17 ` Christian Marillat
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Marillat @ 2002-12-20 19:23 UTC (permalink / raw)
  To: docbook-tools-discuss

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'.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-06 14:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-20 19:23 Name of temporary files causes erratic behaviour Christian Marillat
2002-12-06  6:17 ` Christian Marillat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).