添加快速进入编译环境脚本

This commit is contained in:
jingjingxyk
2023-04-22 02:05:26 +08:00
parent 40d09bc82e
commit 65a32a977f
10 changed files with 136 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/bash
set -exu
__DIR__=$(
cd "$(dirname "$0")"
pwd
)
test -f /etc/apk/repositories.save || cp /etc/apk/repositories /etc/apk/repositories.save
sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
apk update
apk add vim alpine-sdk xz autoconf automake linux-headers clang-dev clang lld libtool cmake bison re2c gettext coreutils