Update Makefile

This commit is contained in:
Kevin K. 2015-03-25 20:50:25 -04:00
parent 42c83f19c8
commit 28a89b8ec2

View file

@ -10,11 +10,11 @@ test:
cp Cargo.toml cargo.bak
read -p "fork url: " FORK
read -p "branch [master]: " BRANCH
sed -e "s/^\#FORK/git=\"$FORK\"/" cargo.bak > Cargo.toml
sed "s/^git/git = \"$FORK\"/" cargo.bak > Cargo.toml
if [ "$BRANCH" == "" ]; then
sed -i "s/^\#BRANCH/branch=\"master\"/" Cargo.toml
sed -i "s/^git/branch = \"master\"/" Cargo.toml
else
sed -i "s/^\#BRNACH/branch=\"$BRANCH\"/" Cargo.toml
sed -i "s/^branch/branch = \"$BRANCH\"/" Cargo.toml
fi
(make clean) || (make clean && false)
(make build) || (make clean && false)
@ -26,4 +26,4 @@ test:
clean:
cd "$(THIS_DIR)"
cargo clean
cargo clean