2019-05-21 11:22:33 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
|
|
echo "Error: Must provide the full path to the project to build"
|
|
|
|
exit 1
|
|
|
|
fi
|
2019-05-22 15:09:59 -07:00
|
|
|
if [ ! -f "$1/Cargo.toml" ]; then
|
2019-05-21 11:22:33 -07:00
|
|
|
echo "Error: Cannot find project: $1"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd "$1"
|
|
|
|
|
2019-06-12 13:04:24 -07:00
|
|
|
set -e
|
2019-05-21 11:22:33 -07:00
|
|
|
|
2019-06-12 13:04:24 -07:00
|
|
|
echo "Cleaning $1"
|
2019-05-21 11:22:33 -07:00
|
|
|
cargo clean
|