mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-14 20:26:50 +00:00
Fix a bug where the DVI file was not updated due to an old format .dep file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6383 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
120c89f24f
commit
e36eb8f674
@ -1,3 +1,8 @@
|
|||||||
|
2003-03-07 Dekel Tsur <dekelts@tau.ac.il>
|
||||||
|
|
||||||
|
* LaTeX.C (run): Fix a bug where the DVI file was not updated due
|
||||||
|
to an old format .dep file.
|
||||||
|
|
||||||
2003-03-07 Angus Leeming <leeming@lyx.org>
|
2003-03-07 Angus Leeming <leeming@lyx.org>
|
||||||
|
|
||||||
* BufferView_pimpl.C (dispatch):
|
* BufferView_pimpl.C (dispatch):
|
||||||
|
@ -234,7 +234,7 @@ void DepTable::write(string const & f) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void DepTable::read(string const & f)
|
bool DepTable::read(string const & f)
|
||||||
{
|
{
|
||||||
ifstream ifs(f.c_str());
|
ifstream ifs(f.c_str());
|
||||||
string nome;
|
string nome;
|
||||||
@ -252,4 +252,5 @@ void DepTable::read(string const & f)
|
|||||||
}
|
}
|
||||||
deplist[nome] = di;
|
deplist[nome] = di;
|
||||||
}
|
}
|
||||||
|
return deplist.size();
|
||||||
}
|
}
|
||||||
|
@ -32,8 +32,8 @@ public:
|
|||||||
|
|
||||||
///
|
///
|
||||||
void write(string const & f) const;
|
void write(string const & f) const;
|
||||||
///
|
/// returns true if dep file was read successfully
|
||||||
void read(string const & f);
|
bool read(string const & f);
|
||||||
/// returns true if any of the files has changed
|
/// returns true if any of the files has changed
|
||||||
bool sumchange() const;
|
bool sumchange() const;
|
||||||
/// return true if fil has changed.
|
/// return true if fil has changed.
|
||||||
|
@ -180,7 +180,10 @@ int LaTeX::run(TeXErrors & terr, LyXFunc * lfun)
|
|||||||
if (had_depfile) {
|
if (had_depfile) {
|
||||||
lyxerr[Debug::DEPEND] << "Dependency file exists" << endl;
|
lyxerr[Debug::DEPEND] << "Dependency file exists" << endl;
|
||||||
// Read the dep file:
|
// Read the dep file:
|
||||||
head.read(depfile);
|
had_depfile = head.read(depfile);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (had_depfile) {
|
||||||
// Update the checksums
|
// Update the checksums
|
||||||
head.update();
|
head.update();
|
||||||
// Can't just check if anything has changed because it might have aborted
|
// Can't just check if anything has changed because it might have aborted
|
||||||
@ -201,7 +204,7 @@ int LaTeX::run(TeXErrors & terr, LyXFunc * lfun)
|
|||||||
run_bibtex = true;
|
run_bibtex = true;
|
||||||
} else
|
} else
|
||||||
lyxerr[Debug::DEPEND]
|
lyxerr[Debug::DEPEND]
|
||||||
<< "Dependency file does not exist" << endl;
|
<< "Dependency file does not exist, or has wrong format" << endl;
|
||||||
|
|
||||||
/// We scan the aux file even when had_depfile = false,
|
/// We scan the aux file even when had_depfile = false,
|
||||||
/// because we can run pdflatex on the file after running latex on it,
|
/// because we can run pdflatex on the file after running latex on it,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user