Tidy up the top-level directory by moving misc. scripts into a subdirectory.

This commit is contained in:
Dan Gohman
2019-11-08 09:47:31 -08:00
parent a40e3b734a
commit fff777d4c3
4 changed files with 2 additions and 2 deletions

12
scripts/format-all.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
set -euo pipefail
# Format all sources using rustfmt.
topdir=$(dirname "$0")
cd "$topdir"
# Make sure we can find rustfmt.
export PATH="$PATH:$HOME/.cargo/bin"
exec cargo +stable fmt --all -- "$@"