deps: update
This commit is contained in:
parent
44ba6ecce4
commit
f6c444c424
3 changed files with 59 additions and 57 deletions
|
|
@ -353,6 +353,35 @@ if [ "${LIB_RELEASE-}" ]; then
|
||||||
fi
|
fi
|
||||||
LIB_RELEASE=1
|
LIB_RELEASE=1
|
||||||
|
|
||||||
|
ensure_os() {
|
||||||
|
if [ -n "${OS-}" ]; then
|
||||||
|
# Windows defines OS=Windows_NT.
|
||||||
|
if [ "$OS" == Windows_NT ]; then
|
||||||
|
OS=windows
|
||||||
|
fi
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
uname=$(uname)
|
||||||
|
case $uname in
|
||||||
|
Linux) OS=linux;;
|
||||||
|
Darwin) OS=macos;;
|
||||||
|
FreeBSD) OS=freebsd;;
|
||||||
|
*) OS=$uname;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
ensure_arch() {
|
||||||
|
if [ -n "${ARCH-}" ]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
uname_m=$(uname -m)
|
||||||
|
case $uname_m in
|
||||||
|
aarch64) ARCH=arm64;;
|
||||||
|
x86_64) ARCH=amd64;;
|
||||||
|
*) ARCH=$uname_m;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
ensure_goos() {
|
ensure_goos() {
|
||||||
if [ -n "${GOOS-}" ]; then
|
if [ -n "${GOOS-}" ]; then
|
||||||
return
|
return
|
||||||
|
|
@ -374,34 +403,6 @@ ensure_goarch() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
ensure_os() {
|
|
||||||
if [ -n "${_OS-}" ]; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
uname=$(uname)
|
|
||||||
case $uname in
|
|
||||||
Linux) OS=linux;;
|
|
||||||
Darwin) OS=macos;;
|
|
||||||
FreeBSD) OS=freebsd;;
|
|
||||||
MINGW32_NT*) OS=windows;;
|
|
||||||
*) OS=$uname;;
|
|
||||||
esac
|
|
||||||
# We cannot use $OS to check as $OS is defined in MinGW terminals by default.
|
|
||||||
_OS=1
|
|
||||||
}
|
|
||||||
|
|
||||||
ensure_arch() {
|
|
||||||
if [ -n "${ARCH-}" ]; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
uname_m=$(uname -m)
|
|
||||||
case $uname_m in
|
|
||||||
aarch64) ARCH=arm64;;
|
|
||||||
x86_64) ARCH=amd64;;
|
|
||||||
*) ARCH=$uname_m;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
gh_repo() {
|
gh_repo() {
|
||||||
gh repo view --json nameWithOwner --template '{{ .nameWithOwner }}'
|
gh repo view --json nameWithOwner --template '{{ .nameWithOwner }}'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
ci/sub
2
ci/sub
|
|
@ -1 +1 @@
|
||||||
Subproject commit 66692a2f312d37a41de6b505842637f644a65eb1
|
Subproject commit 7a098b36a1bb9a5b894c596a6cccd029b6f3359d
|
||||||
57
install.sh
57
install.sh
|
|
@ -489,6 +489,35 @@ if [ "${LIB_RELEASE-}" ]; then
|
||||||
fi
|
fi
|
||||||
LIB_RELEASE=1
|
LIB_RELEASE=1
|
||||||
|
|
||||||
|
ensure_os() {
|
||||||
|
if [ -n "${OS-}" ]; then
|
||||||
|
# Windows defines OS=Windows_NT.
|
||||||
|
if [ "$OS" == Windows_NT ]; then
|
||||||
|
OS=windows
|
||||||
|
fi
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
uname=$(uname)
|
||||||
|
case $uname in
|
||||||
|
Linux) OS=linux;;
|
||||||
|
Darwin) OS=macos;;
|
||||||
|
FreeBSD) OS=freebsd;;
|
||||||
|
*) OS=$uname;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
ensure_arch() {
|
||||||
|
if [ -n "${ARCH-}" ]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
uname_m=$(uname -m)
|
||||||
|
case $uname_m in
|
||||||
|
aarch64) ARCH=arm64;;
|
||||||
|
x86_64) ARCH=amd64;;
|
||||||
|
*) ARCH=$uname_m;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
ensure_goos() {
|
ensure_goos() {
|
||||||
if [ -n "${GOOS-}" ]; then
|
if [ -n "${GOOS-}" ]; then
|
||||||
return
|
return
|
||||||
|
|
@ -510,34 +539,6 @@ ensure_goarch() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
ensure_os() {
|
|
||||||
if [ -n "${_OS-}" ]; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
uname=$(uname)
|
|
||||||
case $uname in
|
|
||||||
Linux) OS=linux;;
|
|
||||||
Darwin) OS=macos;;
|
|
||||||
FreeBSD) OS=freebsd;;
|
|
||||||
MINGW32_NT*) OS=windows;;
|
|
||||||
*) OS=$uname;;
|
|
||||||
esac
|
|
||||||
# We cannot use $OS to check as $OS is defined in MinGW terminals by default.
|
|
||||||
_OS=1
|
|
||||||
}
|
|
||||||
|
|
||||||
ensure_arch() {
|
|
||||||
if [ -n "${ARCH-}" ]; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
uname_m=$(uname -m)
|
|
||||||
case $uname_m in
|
|
||||||
aarch64) ARCH=arm64;;
|
|
||||||
x86_64) ARCH=amd64;;
|
|
||||||
*) ARCH=$uname_m;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
gh_repo() {
|
gh_repo() {
|
||||||
gh repo view --json nameWithOwner --template '{{ .nameWithOwner }}'
|
gh repo view --json nameWithOwner --template '{{ .nameWithOwner }}'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue