1 Star 0 Fork 0

Weiyi Chen/psi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
dependencies-xwindows-release.sh 902 Bytes
一键复制 编辑 原始数据 按行查看 历史
Timon Gehr 提交于 2023-04-01 08:46 +08:00 . Update compilers.
#!/bin/bash
VERSION="1.32.0"
LINK=https://github.com/ldc-developers/ldc/releases/download/v$VERSION/
NAME="ldc2-$VERSION-windows-x64"
FILE="$NAME.7z"
SUM="d06bc24a51068ca0ff163b3b8fb0db02"
if [[ "$OSTYPE" == "linux-gnu" ]]; then
SUM1="$SUM $FILE"
MD5="md5sum"
elif [[ "$OSTYPE" == "darwin"* ]]; then
SUM1="MD5 ($FILE) = $SUM"
MD5="md5"
else
>&2 echo "This script does not support your platform at this time."
>&2 echo "Try to obtain the ldc d compiler manually from:"
>&2 echo "https://github.com/ldc-developers/ldc/releases"
>&2 echo "Pull requests for improved build script welcome."
exit 1
fi
if [ ! -d $NAME ]; then
TARLINK="$LINK$FILE"
wget -nc $TARLINK
SUM2=`$MD5 $FILE`
if [[ $SUM1 != $SUM2 ]]; then
echo "ERROR: md5 sum mismatch"
echo "EXPECTED: $SUM1"
echo "GOT : $SUM2"
else
7z x $FILE
fi
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ikitsu/psi.git
git@gitee.com:ikitsu/psi.git
ikitsu
psi
psi
master

搜索帮助