mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
Changed cargo placeholder format of claptests
This commit is contained in:
parent
0cce6b8715
commit
3f134896f8
2 changed files with 5 additions and 5 deletions
|
@ -5,5 +5,5 @@ version = "0.0.1"
|
|||
authors = ["Kevin K. <kbknapp@gmail.com>"]
|
||||
|
||||
[dependencies.clap]
|
||||
git = "$FORK"
|
||||
branch = "$BRANCH"
|
||||
#GIT
|
||||
#BRANCH
|
|
@ -10,11 +10,11 @@ test:
|
|||
cp Cargo.toml cargo.bak
|
||||
read -p "fork url: " FORK
|
||||
read -p "branch [master]: " BRANCH
|
||||
sed -e "s/\$FORK/$FORK" cargo.bak > Cargo.toml
|
||||
sed -e "s/^\#FORK/$FORK" cargo.bak > Cargo.toml
|
||||
if [ "$BRANCH" == "" ]; then
|
||||
sed -i "s/\$BRANCH/master/" Cargo.toml
|
||||
sed -i "s/^\#BRANCH/master/" Cargo.toml
|
||||
else
|
||||
sed -i "s/\$BRNACH/$BRANCH/" Cargo.toml
|
||||
sed -i "s/^\#BRNACH/$BRANCH/" Cargo.toml
|
||||
fi
|
||||
(make clean) || (make clean && false)
|
||||
(make build) || (make clean && false)
|
||||
|
|
Loading…
Reference in a new issue