mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Fix test targets for some build trees
The old targets only worked if the build tree was below the source tree.
This commit is contained in:
parent
08375b191c
commit
02b1c4aa51
@ -36,7 +36,7 @@ TEST_FILES = \
|
||||
|
||||
TESTS = test/runtests.py
|
||||
updatetests: tex2lyx
|
||||
$(PYTHON) "$(srcdir)/test/runtests.py" ./tex2lyx ../../../lib/scripts "$(srcdir)/test"
|
||||
$(PYTHON) "$(srcdir)/test/runtests.py" ./tex2lyx "$(top_srcdir)/lib/scripts" "$(srcdir)/test"
|
||||
|
||||
LINKED_FILES = \
|
||||
../Author.cpp \
|
||||
|
@ -997,6 +997,16 @@ int main(int argc, char * argv[])
|
||||
return EXIT_SUCCESS;
|
||||
} else {
|
||||
masterFilePathLyX = onlyPath(outfilename);
|
||||
if (copy_files) {
|
||||
FileName const path(masterFilePathLyX);
|
||||
if (!path.isDirectory()) {
|
||||
if (!path.createPath()) {
|
||||
cerr << "Warning: Could not create directory for file `"
|
||||
<< masterFilePathLyX << "´." << endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (roundtrip) {
|
||||
if (tex2tex(infilename, FileName(outfilename), default_encoding))
|
||||
return EXIT_SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user