Restore cargo install to work around --features= 'feature' (#4627)

This commit is contained in:
Michael Vines 2019-06-10 18:49:08 -07:00 committed by GitHub
parent 966b6999d1
commit b4d4edb645
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 17 deletions

View File

@ -29,27 +29,26 @@ SECONDS=0
cargo $rust_version build --all --release --features="$cargoFeatures" cargo $rust_version build --all --release --features="$cargoFeatures"
) )
PROGRAMS=( BIN_CRATES=(
solana-drone drone
solana-genesis genesis
solana-gossip gossip
solana-install install
solana-install-init keygen
solana-keygen ledger-tool
solana-ledger-tool replicator
solana-replicator validator
solana-validator wallet
solana-wallet bench-exchange
solana-bench-exchange bench-streamer
solana-bench-streamer bench-tps
solana-bench-tps
) )
for program in "${PROGRAMS[@]}"; do for crate in "${BIN_CRATES[@]}"; do
( (
set -x set -x
mkdir -p "$installDir"/bin # shellcheck disable=SC2086 # Don't want to double quote $rust_version
cp target/release/"$program" "$installDir"/bin cargo $rust_version install --force --path "$crate" --root "$installDir" --features="$cargoFeatures"
) )
done done