1
Fork 0

Add new htmldocck function to run-make-support

This commit is contained in:
Guillaume Gomez 2024-05-15 11:46:04 +02:00
parent ac385a5af6
commit c87ae947eb
2 changed files with 8 additions and 8 deletions

View file

@ -59,6 +59,12 @@ pub fn python_command() -> Command {
Command::new(python_path) 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 { pub fn source_path() -> PathBuf {
std::env::var("S").expect("S variable does not exist").into() std::env::var("S").expect("S variable does not exist").into()
} }

View file

@ -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::fs::read_dir;
use std::path::Path; use std::path::Path;
@ -45,11 +45,5 @@ fn main() {
} }
rustdoc.run(); rustdoc.run();
python_command() htmldocck().arg(out_dir).arg("src/lib.rs").status().unwrap().success();
.arg(source_path().join("/src/etc/htmldocck.py"))
.arg(out_dir)
.arg("src/lib.rs")
.status()
.unwrap()
.success();
} }