mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-17 06:26:55 +00:00
Add new htmldocck
function to run-make-support
This commit is contained in:
parent
ac385a5af6
commit
c87ae947eb
@ -59,6 +59,12 @@ pub fn python_command() -> Command {
|
||||
Command::new(python_path)
|
||||
}
|
||||
|
||||
pub fn htmldocck() -> Command {
|
||||
let mut python = python_command();
|
||||
python.arg(source_path().join("/src/etc/htmldocck.py"));
|
||||
python
|
||||
}
|
||||
|
||||
pub fn source_path() -> PathBuf {
|
||||
std::env::var("S").expect("S variable does not exist").into()
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
use run_make_support::{python_command, rustc, rustdoc, source_path, tmp_dir};
|
||||
use run_make_support::{htmldocck, rustc, rustdoc, source_path, tmp_dir};
|
||||
use std::fs::read_dir;
|
||||
use std::path::Path;
|
||||
|
||||
@ -45,11 +45,5 @@ fn main() {
|
||||
}
|
||||
rustdoc.run();
|
||||
|
||||
python_command()
|
||||
.arg(source_path().join("/src/etc/htmldocck.py"))
|
||||
.arg(out_dir)
|
||||
.arg("src/lib.rs")
|
||||
.status()
|
||||
.unwrap()
|
||||
.success();
|
||||
htmldocck().arg(out_dir).arg("src/lib.rs").status().unwrap().success();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user