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") {
my $rElem1 = newMatch("ext" => ".bib",
"filetype" => "prefix_for_list",
"search" => qr/^bibfiles\s+\"(.+)\"/,
"search" => qr/^bibfiles\s+\"([^\"]+)\"/,
"result" => ["bibfiles \"", "1", "\""]);
my $rElem2 = newMatch("ext" => ".bst",
"filetype" => "prefix_for_list",

View File

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