]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/bootstrap.sh
Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' into clippyup
[rust.git] / src / tools / rustfmt / bootstrap.sh
1 #!/bin/bash
2
3 # Make sure you double check the diffs after running this script - with great
4 # power comes great responsibility.
5 # We deliberately avoid reformatting files with rustfmt comment directives.
6
7 cargo build --release
8
9 target/release/rustfmt src/lib.rs
10 target/release/rustfmt src/bin/main.rs
11 target/release/rustfmt src/cargo-fmt/main.rs
12
13 for filename in tests/target/*.rs; do
14     if ! grep -q "rustfmt-" "$filename"; then
15         target/release/rustfmt $filename
16     fi
17 done