Provisioning: Create symbolic for shasum tool on macOS for compatibility

On macOS the sha1 tool is named 'shasum' while on all other unix systems
it is called 'sha1sum'. In order to make all unix provisioning scripts
run on macOS without special case handling a symbolic link is created.

Change-Id: Ib1365cbb0dcb31e68a22959ce939fb450ec7e3f7
Reviewed-by: Joni Jäntti <joni.jantti@qt.io>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Reviewed-by: Simo Fält <simo.falt@qt.io>
(cherry picked from commit 04d1ee1df4)
This commit is contained in:
Rainer Keller
2018-03-08 08:24:33 +01:00
committed by Liang Qi
parent 0c7588bae3
commit ea67572b4a
6 changed files with 54 additions and 7 deletions

View File

@@ -71,7 +71,7 @@ function DownloadURL {
}
echo "Checking SHA1 on PKG '$targetFile'"
echo "$expectedSha1 *$targetFile" > $targetFile.sha1
shasum --check $targetFile.sha1 || throw $ExceptionSHA1
sha1sum --check $targetFile.sha1 || throw $ExceptionSHA1
)
catch || {