aboutsummaryrefslogtreecommitdiff
path: root/store/debian-dev/setup/llvm.bash
diff options
context:
space:
mode:
authorYuqian Yang <crupest@outlook.com>2025-06-29 15:07:57 +0800
committerYuqian Yang <crupest@outlook.com>2025-06-29 15:08:47 +0800
commita123d4266935ff9d75a8e32dd29ee965e9eb4d50 (patch)
treeb5bc36630c747f1311b4e4f8f7b6fb489dd59640 /store/debian-dev/setup/llvm.bash
parent50299600c0134f00c7f8e4fe6b599987596c6dc5 (diff)
downloadcrupest-a123d4266935ff9d75a8e32dd29ee965e9eb4d50.tar.gz
crupest-a123d4266935ff9d75a8e32dd29ee965e9eb4d50.tar.bz2
crupest-a123d4266935ff9d75a8e32dd29ee965e9eb4d50.zip
debian-dev: refactor all.
Diffstat (limited to 'store/debian-dev/setup/llvm.bash')
-rwxr-xr-xstore/debian-dev/setup/llvm.bash11
1 files changed, 11 insertions, 0 deletions
diff --git a/store/debian-dev/setup/llvm.bash b/store/debian-dev/setup/llvm.bash
new file mode 100755
index 0000000..ca6d4bf
--- /dev/null
+++ b/store/debian-dev/setup/llvm.bash
@@ -0,0 +1,11 @@
+#! /usr/bin/env bash
+
+set -e -o pipefail
+
+if [[ -n "$CRUPEST_DEBIAN_DEV_CHINA" ]]; then
+ base_url=https://mirrors.tuna.tsinghua.edu.cn/llvm-apt
+else
+ base_url=https://apt.llvm.org
+fi
+
+curl -fsSL "$base_url/llvm.sh" | sh -s -- all -m "$base_url"