using support::isFileReadable;
using support::libFileSearch;
using support::libScriptSearch;
+using support::makeAbsPath;
using support::makeRelPath;
using support::onlyFilename;
using support::onlyPath;
" < " + quoteName(infile2 + ".out") +
" > " + quoteName(logfile);
one.startscript(Systemcall::Wait, command2);
- if (!scanLog(*buffer, command, logfile, errorList))
+ if (!scanLog(*buffer, command, FileName(makeAbsPath(logfile, path)), errorList))
return false;
}
string const to_base = changeExtension(to.absFilename(), string());
string const to_extension = getExtension(to.absFilename());
- vector<string> files = dirList(onlyPath(from.absFilename()), getExtension(from.absFilename()));
+ vector<string> const files = dirList(
+ FileName(onlyPath(from.absFilename())),
+ getExtension(from.absFilename()));
for (vector<string>::const_iterator it = files.begin();
it != files.end(); ++it)
if (prefixIs(*it, base)) {
bool Converters::scanLog(Buffer const & buffer, string const & /*command*/,
- string const & filename, ErrorList & errorList)
+ FileName const & filename, ErrorList & errorList)
{
OutputParams runparams;
runparams.flavor = OutputParams::LATEX;
// do the LaTeX run(s)
string const name = buffer.getLatexName();
- LaTeX latex(command, runparams, name);
+ LaTeX latex(command, runparams, FileName(makeAbsPath(name)));
TeXErrors terr;
showMessage show(buffer);
latex.message.connect(show);