mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
Update Makefile
This commit is contained in:
parent
42c83f19c8
commit
28a89b8ec2
1 changed files with 4 additions and 4 deletions
|
@ -10,11 +10,11 @@ test:
|
||||||
cp Cargo.toml cargo.bak
|
cp Cargo.toml cargo.bak
|
||||||
read -p "fork url: " FORK
|
read -p "fork url: " FORK
|
||||||
read -p "branch [master]: " BRANCH
|
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
|
if [ "$BRANCH" == "" ]; then
|
||||||
sed -i "s/^\#BRANCH/branch=\"master\"/" Cargo.toml
|
sed -i "s/^git/branch = \"master\"/" Cargo.toml
|
||||||
else
|
else
|
||||||
sed -i "s/^\#BRNACH/branch=\"$BRANCH\"/" Cargo.toml
|
sed -i "s/^branch/branch = \"$BRANCH\"/" Cargo.toml
|
||||||
fi
|
fi
|
||||||
(make clean) || (make clean && false)
|
(make clean) || (make clean && false)
|
||||||
(make build) || (make clean && false)
|
(make build) || (make clean && false)
|
||||||
|
@ -26,4 +26,4 @@ test:
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
cd "$(THIS_DIR)"
|
cd "$(THIS_DIR)"
|
||||||
cargo clean
|
cargo clean
|
||||||
|
|
Loading…
Reference in a new issue