diff options
| author | Cassandra Fridkin <cass@swag.lgbt> | 2020-10-05 18:59:47 -0400 |
|---|---|---|
| committer | Cassandra Fridkin <cass@swag.lgbt> | 2020-10-05 18:59:47 -0400 |
| commit | f53d43663814f63f1979c27085abb27aa9a183df (patch) | |
| tree | 6a096e2f374d2b22a71807c9b4f024f333b2b375 /src/bootstrap | |
| parent | 7de557bf9c550623ce6493b8af940cb9b08c2293 (diff) | |
| download | rust-f53d43663814f63f1979c27085abb27aa9a183df.tar.gz rust-f53d43663814f63f1979c27085abb27aa9a183df.zip | |
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
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/builder.rs | 2 | ||||
| -rw-r--r-- | src/bootstrap/run.rs | 23 | ||||
| -rw-r--r-- | src/bootstrap/tool.rs | 1 |
3 files changed, 1 insertions, 25 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 1359b162853..4bc162abee6 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -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), } } diff --git a/src/bootstrap/run.rs b/src/bootstrap/run.rs index da34d8b9d70..80c093e713e 100644 --- a/src/bootstrap/run.rs +++ b/src/bootstrap/run.rs @@ -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; diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs index 790e324a55f..290e3744852 100644 --- a/src/bootstrap/tool.rs +++ b/src/bootstrap/tool.rs @@ -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"; ); |
