Remove the rust stuff and just make it a simple shell script

It's ok, now I'm writing enough Rust that i'm able to get my fix elsewhere
This commit is contained in:
Cassandra Fridkin 2020-10-05 18:59:47 -04:00
parent 7de557bf9c
commit f53d436638
No known key found for this signature in database
GPG key ID: B06380CCA613333A
7 changed files with 1 additions and 51 deletions

View file

@ -477,7 +477,7 @@ impl<'a> Builder<'a> {
install::Src,
install::Rustc
),
Kind::Run => describe!(run::ExpandYamlAnchors, run::BuildManifest, run::InstallGitHook),
Kind::Run => describe!(run::ExpandYamlAnchors, run::BuildManifest),
}
}

View file

@ -44,29 +44,6 @@ fn try_run(builder: &Builder<'_>, cmd: &mut Command) -> bool {
true
}
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub struct InstallGitHook;
impl Step for InstallGitHook {
type Output = ();
/// Runs the `install-git-hook` tool.
///
/// This tool in `src/tools` installs a git hook to automatically run
/// `tidy --bless` before each commit, so you don't forget to do it
fn run(self, builder: &Builder<'_>) {
builder.info("Installing git hook");
try_run(builder, &mut builder.tool_cmd(Tool::InstallGitHook).arg(&builder.src));
}
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
run.path("src/tools/install-git-hook")
}
fn make_run(run: RunConfig<'_>) {
run.builder.ensure(InstallGitHook);
}
}
#[derive(Debug, PartialOrd, Ord, Copy, Clone, Hash, PartialEq, Eq)]
pub struct BuildManifest;

View file

@ -366,7 +366,6 @@ bootstrap_tool!(
RustInstaller, "src/tools/rust-installer", "fabricate", is_external_tool = true;
RustdocTheme, "src/tools/rustdoc-themes", "rustdoc-themes";
ExpandYamlAnchors, "src/tools/expand-yaml-anchors", "expand-yaml-anchors";
InstallGitHook, "src/tools/install-git-hook", "install-git-hook";
LintDocs, "src/tools/lint-docs", "lint-docs";
);