Changed cargo placeholder format of claptests

This commit is contained in:
Kevin K 2015-03-25 17:05:47 -04:00
parent 0cce6b8715
commit 3f134896f8
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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)