]> git.lizzy.rs Git - rust.git/blobdiff - bootstrap.sh
Merge pull request #2790 from DevOrc/master
[rust.git] / bootstrap.sh
index c84b66340a8a7a4d2e8a6bc0e7974c4a2beda0d3..05ac0ce2f306fc4bcf4802242017887b31f8ca9e 100755 (executable)
@@ -4,15 +4,14 @@
 # power comes great responsibility.
 # We deliberately avoid reformatting files with rustfmt comment directives.
 
-cargo build
+cargo build --release
 
-target/debug/rustfmt --write-mode=overwrite src/lib.rs
-target/debug/rustfmt --write-mode=overwrite src/bin/rustfmt.rs
-target/debug/rustfmt --write-mode=overwrite src/bin/cargo-fmt.rs
-target/debug/rustfmt --write-mode=overwrite tests/system.rs
+target/release/rustfmt src/lib.rs
+target/release/rustfmt src/bin/main.rs
+target/release/rustfmt src/cargo-fmt/main.rs
 
 for filename in tests/target/*.rs; do
     if ! grep -q "rustfmt-" "$filename"; then
-        target/debug/rustfmt --write-mode=overwrite $filename
+        target/release/rustfmt $filename
     fi
 done