Skip to content

Commit f53d436

Browse files
committed
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
1 parent 7de557b commit f53d436

File tree

7 files changed

+1
-51
lines changed

7 files changed

+1
-51
lines changed

Cargo.lock

-4
Original file line numberDiff line numberDiff line change
@@ -1458,10 +1458,6 @@ dependencies = [
14581458
"hashbrown",
14591459
]
14601460

1461-
[[package]]
1462-
name = "install-git-hook"
1463-
version = "0.1.0"
1464-
14651461
[[package]]
14661462
name = "installer"
14671463
version = "0.0.0"

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ members = [
88
"src/tools/clippy",
99
"src/tools/compiletest",
1010
"src/tools/error_index_generator",
11-
"src/tools/install-git-hook",
1211
"src/tools/linkchecker",
1312
"src/tools/lint-docs",
1413
"src/tools/rustbook",

src/bootstrap/builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ impl<'a> Builder<'a> {
477477
install::Src,
478478
install::Rustc
479479
),
480-
Kind::Run => describe!(run::ExpandYamlAnchors, run::BuildManifest, run::InstallGitHook),
480+
Kind::Run => describe!(run::ExpandYamlAnchors, run::BuildManifest),
481481
}
482482
}
483483

src/bootstrap/run.rs

-23
Original file line numberDiff line numberDiff line change
@@ -44,29 +44,6 @@ fn try_run(builder: &Builder<'_>, cmd: &mut Command) -> bool {
4444
true
4545
}
4646

47-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
48-
pub struct InstallGitHook;
49-
50-
impl Step for InstallGitHook {
51-
type Output = ();
52-
53-
/// Runs the `install-git-hook` tool.
54-
///
55-
/// This tool in `src/tools` installs a git hook to automatically run
56-
/// `tidy --bless` before each commit, so you don't forget to do it
57-
fn run(self, builder: &Builder<'_>) {
58-
builder.info("Installing git hook");
59-
try_run(builder, &mut builder.tool_cmd(Tool::InstallGitHook).arg(&builder.src));
60-
}
61-
62-
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
63-
run.path("src/tools/install-git-hook")
64-
}
65-
66-
fn make_run(run: RunConfig<'_>) {
67-
run.builder.ensure(InstallGitHook);
68-
}
69-
}
7047
#[derive(Debug, PartialOrd, Ord, Copy, Clone, Hash, PartialEq, Eq)]
7148
pub struct BuildManifest;
7249

src/bootstrap/tool.rs

-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,6 @@ bootstrap_tool!(
366366
RustInstaller, "src/tools/rust-installer", "fabricate", is_external_tool = true;
367367
RustdocTheme, "src/tools/rustdoc-themes", "rustdoc-themes";
368368
ExpandYamlAnchors, "src/tools/expand-yaml-anchors", "expand-yaml-anchors";
369-
InstallGitHook, "src/tools/install-git-hook", "install-git-hook";
370369
LintDocs, "src/tools/lint-docs", "lint-docs";
371370
);
372371

src/tools/install-git-hook/Cargo.toml

-5
This file was deleted.

src/tools/install-git-hook/src/main.rs

-16
This file was deleted.

0 commit comments

Comments
 (0)