Skip to content

Commit

Permalink
Return passing errorlevel if BibTeX issues warnings (fixes #260)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Sep 11, 2023
1 parent 5d988b0 commit 22348ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ this project uses date-based 'snapshot' version identifiers.
- Extend version string normalisation during checks
(see issue \#96)

### Fixed
- Return passing errorlevel if BibTeX issues warnings
(see \#260)

## [2023-09-07]

### Changed
Expand Down
6 changes: 4 additions & 2 deletions l3build-typesetting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ function bibtex(name,dir)
os_grepexe .. " \"^" .. grep .. "bibdata{\" " .. name .. ".aux > "
.. os_null
) == 0 then
return runcmd(bibtexexe .. " " .. bibtexopts .. " " .. name,dir,
{"BIBINPUTS","BSTINPUTS"})
local errorlevel = runcmd(bibtexexe .. " " .. bibtexopts .. " " .. name,
dir,{"BIBINPUTS","BSTINPUTS"})
-- BibTeX(8) signals warnings with errorlevel 1
if errorlevel > 1 then return errorlevel else return 0 end
end
end
return 0
Expand Down

0 comments on commit 22348ef

Please sign in to comment.