Skip to content

Commit 636a232

Browse files
committed
Do not remove latex log/aux files on error.
1 parent 8ea9090 commit 636a232

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cmake/version.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
set(CADABRA_VERSION_MAJOR 2)
22
set(CADABRA_VERSION_MINOR 3)
33
set(CADABRA_VERSION_PATCH 6)
4-
set(CADABRA_VERSION_TWEAK 2)
4+
set(CADABRA_VERSION_TWEAK 3)
55
set(COPYRIGHT_YEARS "2001-2020")
66
math(EXPR SYSTEM_BITS "${CMAKE_SIZEOF_VOID_P} * 8")
77
find_program(GIT git PATHS ${GIT_DIR})

frontend/common/TeXEngine.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,10 +480,6 @@ void TeXEngine::convert_set(std::set<std::shared_ptr<TeXRequest> >& reqs)
480480
);
481481
auto latex_exit_status=latex_proc.get_exit_status();
482482

483-
erase_file(tmppath+".aux");
484-
erase_file(tmppath+".log");
485-
erase_file(tmppath+".out");
486-
487483
std::string err=handle_latex_errors(latex_stdout+latex_stderr, latex_exit_status);
488484
setenv("TEXINPUTS", oldtexinputs.c_str(), 1);
489485

@@ -501,6 +497,10 @@ void TeXEngine::convert_set(std::set<std::shared_ptr<TeXRequest> >& reqs)
501497
throw TeXException(err);
502498
}
503499

500+
erase_file(tmppath+".aux");
501+
erase_file(tmppath+".log");
502+
erase_file(tmppath+".out");
503+
504504
erase_file(tmppath+".tex");
505505

506506
// Convert the entire dvi file to png files.

0 commit comments

Comments
 (0)