1 Star 0 Fork 0

Weiyi Chen/psi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
dependencies-release.sh 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
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/
if [[ "$OSTYPE" == "linux-gnu" ]]; then
NAME="ldc2-$VERSION-linux-x86_64"
FILE="$NAME.tar.xz"
SUM1="395fb064a9f1b2383ee39d4f988612aa $FILE"
MD5="md5sum"
elif [[ "$OSTYPE" == "darwin"* ]]; then
NAME="ldc2-$VERSION-osx-x86_64"
FILE="$NAME.tar.xz"
SUM1="MD5 ($FILE) = be54527ffcaefe49eb0aa4ff444e3ed9"
MD5="md5sum"
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
tar -xf $FILE
fi
fi
git submodule init
git submodule update
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ikitsu/psi.git
git@gitee.com:ikitsu/psi.git
ikitsu
psi
psi
master

搜索帮助