Cmake docbook5 tests: Use absolute path-hints for 'bibfiles' entries in lyx-file

This commit is contained in:
Kornel Benko 2020-11-29 08:48:16 +01:00
parent cede08451e
commit aea775cbc6
2 changed files with 5 additions and 1 deletions

View File

@ -335,7 +335,7 @@ sub checkForLatexCommand($)
if ($param eq "bibtex") { if ($param eq "bibtex") {
my $rElem1 = newMatch("ext" => ".bib", my $rElem1 = newMatch("ext" => ".bib",
"filetype" => "prefix_for_list", "filetype" => "prefix_for_list",
"search" => qr/^bibfiles\s+\"(.+)\"/, "search" => qr/^bibfiles\s+\"([^\"]+)\"/,
"result" => ["bibfiles \"", "1", "\""]); "result" => ["bibfiles \"", "1", "\""]);
my $rElem2 = newMatch("ext" => ".bst", my $rElem2 = newMatch("ext" => ".bst",
"filetype" => "prefix_for_list", "filetype" => "prefix_for_list",

View File

@ -203,6 +203,10 @@ sub interpretedCopy($$$$)
my $ext = $isrel[1]; my $ext = $isrel[1];
if ($rStatus->{"filetype"} eq "prefix_only") { if ($rStatus->{"filetype"} eq "prefix_only") {
$f = getNewNameOf("$sourcedir/$f", $rFiles); $f = getNewNameOf("$sourcedir/$f", $rFiles);
if ($format eq "docbook5") {
$rF->[1] = join(',', @{$filelist});
$l = join('', @$rF);
}
} }
else { else {
my ($newname, $res1); my ($newname, $res1);