diff options
author | Karl Berry <karl@freefriends.org> | 2009-05-18 20:26:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-05-18 20:26:17 +0000 |
commit | d70efa3ebbf0c1311353b78cae64fbb8b15f4f64 (patch) | |
tree | 59097f16e91be60dc5dbd294e85337a068372bde /Build/source/texk | |
parent | f3ca98f926bc71ce359087e15d9de4f8b640bf79 (diff) |
write the recorder file in the --output-directory, if specified
git-svn-id: svn://tug.org/texlive/trunk@13214 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r-- | Build/source/texk/web2c/lib/ChangeLog | 6 | ||||
-rw-r--r-- | Build/source/texk/web2c/lib/openclose.c | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/lib/ChangeLog b/Build/source/texk/web2c/lib/ChangeLog index 9cca22d70c3..e5ab7fb1d5b 100644 --- a/Build/source/texk/web2c/lib/ChangeLog +++ b/Build/source/texk/web2c/lib/ChangeLog @@ -1,3 +1,9 @@ +2009-05-18 Karl Berry <karl@tug.org> + + * openclose.c (recorder_start): use output_directory for the .fls + file, if it has been specified with --output-directory. + metapost mail from Nicola, 16 May 2009 13:41:36. + 2009-03-29 Peter Breitenlohner <peb@mppmu.mpg.de> * texmfmp.c: remove all references to Omega, eOmega, and pdfeTeX. diff --git a/Build/source/texk/web2c/lib/openclose.c b/Build/source/texk/web2c/lib/openclose.c index 6ba407000fd..c3ff5c2ec1e 100644 --- a/Build/source/texk/web2c/lib/openclose.c +++ b/Build/source/texk/web2c/lib/openclose.c @@ -39,10 +39,20 @@ recorder_start() /* Alas, while we might want to use mkstemp it is not portable. So we have to be content with using a default name... */ string cwd; + recorder_name = (string)xmalloc(strlen(kpse_program_name)+5); strcpy(recorder_name, kpse_program_name); strcat(recorder_name, ".fls"); + + /* If an output directory was specified, use it instead of cwd. */ + if (output_directory) { + string temp = concat3(output_directory, DIR_SEP_STRING, recorder_name); + free(recorder_name); + recorder_name = temp; + } + recorder_file = xfopen(recorder_name, FOPEN_W_MODE); + cwd = xgetcwd(); fprintf(recorder_file, "PWD %s\n", cwd); free(cwd); |