Skip to content

Commit

Permalink
Simplify build script for Iroha dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantin Munichev <toobwn@gmail.com>
  • Loading branch information
luckychess committed Sep 4, 2019
1 parent 2f4b27f commit 2b94bfd
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions vcpkg/build_iroha_deps.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
#!/usr/bin/env bash
set -e

if [ -z "$1" ]
then
vcpkg_path="$(pwd)/vcpkg"
else
vcpkg_path="$1"
fi
if [ -z "$2" ]
then
iroha_vcpkg_path="$(pwd)/iroha/vcpkg"
else
iroha_vcpkg_path="$2"
fi
vcpkg_path="${1:-$(pwd)/vcpkg}"
iroha_vcpkg_path="${2:-$(pwd)/iroha/vcpkg}"

git clone https://github.com/microsoft/vcpkg $vcpkg_path
git -C $vcpkg_path checkout $(cat "$iroha_vcpkg_path"/VCPKG_COMMIT_SHA)
Expand Down

0 comments on commit 2b94bfd

Please sign in to comment.