mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-11-08 20:27:27 +01:00
ba72994b41
`#!/usr/bin/env bash` should be used to avoid hard paths. To address: dockcross-manylinux-x64: bad interpreter: /bin/bash^M: no such file or directory
25 lines
562 B
Bash
25 lines
562 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
# Copied from https://github.com/pypa/manylinux/blob/master/docker/build_scripts/build_utils.sh
|
|
function check_var {
|
|
if [ -z "$1" ]; then
|
|
echo "required variable not defined"
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
# Copied from https://github.com/pypa/manylinux/blob/master/docker/build_scripts/build_utils.sh
|
|
function check_sha256sum {
|
|
local fname=$1
|
|
check_var ${fname}
|
|
local sha256=$2
|
|
check_var ${sha256}
|
|
|
|
echo "${sha256} ${fname}" > ${fname}.sha256
|
|
sha256sum -c ${fname}.sha256
|
|
rm -f ${fname}.sha256
|
|
}
|
|
|