Properly rebuild rustbooks
This commit is contained in:
parent
5b7343b966
commit
e8cef43dd8
1 changed files with 2 additions and 1 deletions
|
@ -145,7 +145,8 @@ impl<P: Step> Step for RustbookSrc<P> {
|
||||||
let rustbook = builder.tool_exe(Tool::Rustbook);
|
let rustbook = builder.tool_exe(Tool::Rustbook);
|
||||||
let mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook);
|
let mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook);
|
||||||
|
|
||||||
if !builder.config.dry_run() && !(up_to_date(&src, &index) || up_to_date(&rustbook, &index))
|
if !builder.config.dry_run()
|
||||||
|
&& (!up_to_date(&src, &index) || !up_to_date(&rustbook, &index))
|
||||||
{
|
{
|
||||||
builder.info(&format!("Rustbook ({target}) - {name}"));
|
builder.info(&format!("Rustbook ({target}) - {name}"));
|
||||||
let _ = fs::remove_dir_all(&out);
|
let _ = fs::remove_dir_all(&out);
|
||||||
|
|
Loading…
Add table
Reference in a new issue