2021-04-16 03:40:22 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -x
|
|
|
|
set -e
|
|
|
|
|
|
|
|
pacman -Suy --needed --noconfirm
|
|
|
|
pacman -S --needed --noconfirm wget p7zip python3-pip tar xz
|
|
|
|
|
2021-10-02 08:18:32 +08:00
|
|
|
TARBALL="llvm+clang+lld-13.0.0-x86_64-windows-msvc-release-mt.tar.xz"
|
|
|
|
|
2021-04-16 03:40:22 +08:00
|
|
|
pip install s3cmd
|
2021-10-02 08:18:32 +08:00
|
|
|
wget -nv "https://ziglang.org/deps/$TARBALL"
|
2021-10-02 09:07:29 +08:00
|
|
|
# If the first extraction fails, re-try it once; this can happen if the tarball
|
|
|
|
# contains symlinks that are in the table of contents before the files that
|
|
|
|
# they point to.
|
2021-10-02 13:27:16 +08:00
|
|
|
tar -xf $TARBALL || tar --overwrite -xf $TARBALL
|