Mercurial > hg > octave-shane
changeset 9982:7cef030b8069
let __makeinfo__ create temporary file in P_tmpdir
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Mon, 14 Dec 2009 15:22:26 +0100 |
parents | 692ab4eaf965 |
children | 2d347a2f4a0a |
files | scripts/ChangeLog scripts/help/__makeinfo__.m |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2009-12-14 Jaroslav Hajek <highegg@gmail.com> + + * help/__makeinfo__.m: Use P_tmpdir to create temporary file. + 2009-12-09 Rik <octave@nomad.inbox5.com> * polynomial/module.mk: Correct typo and distribute newly created ppder.m
--- a/scripts/help/__makeinfo__.m +++ b/scripts/help/__makeinfo__.m @@ -124,7 +124,11 @@ unwind_protect ## Write Texinfo to tmp file - [fid, name, msg] = mkstemp ("octave_help_XXXXXX", true); + template = "octave_help_XXXXXX"; + [fid, name, msg] = mkstemp ([P_tmpdir, filesep, template], true); + if (fid < 0) + error ("__makeinfo__: could not create temporary file"); + endif fwrite (fid, text); fclose (fid);