mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42: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>"]
|
authors = ["Kevin K. <kbknapp@gmail.com>"]
|
||||||
|
|
||||||
[dependencies.clap]
|
[dependencies.clap]
|
||||||
git = "$FORK"
|
#GIT
|
||||||
branch = "$BRANCH"
|
#BRANCH
|
|
@ -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/$FORK" cargo.bak > Cargo.toml
|
sed -e "s/^\#FORK/$FORK" cargo.bak > Cargo.toml
|
||||||
if [ "$BRANCH" == "" ]; then
|
if [ "$BRANCH" == "" ]; then
|
||||||
sed -i "s/\$BRANCH/master/" Cargo.toml
|
sed -i "s/^\#BRANCH/master/" Cargo.toml
|
||||||
else
|
else
|
||||||
sed -i "s/\$BRNACH/$BRANCH/" Cargo.toml
|
sed -i "s/^\#BRNACH/$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)
|
||||||
|
|
Loading…
Reference in a new issue