
* CorpusScheduler -> Scheduler * fix book * update fuzzers * fix tests * fix sugar * fix * fix tutorial * fix tutorial * fmt * fix * fmt * fmt
22 lines
571 B
Bash
Executable File
22 lines
571 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
|
cd "$SCRIPT_DIR/.."
|
|
|
|
# TODO: This should be rewritten in rust, a Makefile, or some platform-independent language
|
|
|
|
echo "Welcome to the happy fmt script. :)"
|
|
echo "[*] Running fmt for the main crates"
|
|
cargo fmt
|
|
|
|
fuzzers=$(find ./fuzzers -maxdepth 1 -type d)
|
|
backtrace_fuzzers=$(find ./fuzzers/backtrace_baby_fuzzers -maxdepth 1 -type d)
|
|
|
|
for fuzzer in $(echo $fuzzers $backtrace_fuzzers);
|
|
do
|
|
pushd $fuzzer
|
|
echo "[*] Running fmt for $fuzzer"
|
|
cargo fmt --all
|
|
popd
|
|
done
|