diff options
| author | Alexey Gruzdev <alex.gruzdev@hotmail.com> | 2018-04-30 19:31:00 +0100 |
|---|---|---|
| committer | Alexey Gruzdev <alex.gruzdev@hotmail.com> | 2018-04-30 19:31:00 +0100 |
| commit | c72e6326dd4df3096144fe5cd510dc525ec39c9a (patch) | |
| tree | 60b0d79153a484f6879ac4cf53d31c01950d1b5d /scripts/bootstrap.sh | |
| parent | 5897e96f9328584177fe9c13ce6b2db64d089962 (diff) | |
| parent | a9d989ec056246ea320a56ca7d02b161a6fee387 (diff) | |
| download | vcpkg-c72e6326dd4df3096144fe5cd510dc525ec39c9a.tar.gz vcpkg-c72e6326dd4df3096144fe5cd510dc525ec39c9a.zip | |
Merge remote-tracking branch 'remotes/origin/master' into dev/agruzdev/yato
Diffstat (limited to 'scripts/bootstrap.sh')
| -rw-r--r--[-rwxr-xr-x] | scripts/bootstrap.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index 66efb1d62..95ee75af1 100755..100644 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -30,7 +30,14 @@ vcpkgCheckEqualFileHash() { url=$1; filePath=$2; expectedHash=$3 - actualHash=$(shasum -a 512 "$filePath") # sha512sum not available on osx + if command -v "sha512sum" >/dev/null 2>&1 ; then + actualHash=$(sha512sum "$filePath") + else + # sha512sum is not available by default on osx + # shasum is not available by default on Fedora + actualHash=$(shasum -a 512 "$filePath") + fi + actualHash="${actualHash%% *}" # shasum returns [hash filename], so get the first word if ! [ "$expectedHash" = "$actualHash" ]; then @@ -185,4 +192,4 @@ mkdir -p "$buildDir" (cd "$buildDir" && "$cmakeExe" --build .) rm -rf "$vcpkgRootDir/vcpkg" -cp "$buildDir/vcpkg" "$vcpkgRootDir/"
\ No newline at end of file +cp "$buildDir/vcpkg" "$vcpkgRootDir/" |
