From aab3c46fa530654fa28e6dc3e42c2dd3bdfac0bd Mon Sep 17 00:00:00 2001 From: Harry Chen Date: Mon, 29 May 2017 00:35:47 +0800 Subject: [PATCH] Add news and help for LLVM repos Signed-off-by: Harry Chen --- _posts/help/2017-05-28-llvm.md | 36 ++++++++++++++++++++++++++++ _posts/news/2017-05-28-llvm-repos.md | 11 +++++++++ static/js/index.es6 | 3 +++ 3 files changed, 50 insertions(+) create mode 100644 _posts/help/2017-05-28-llvm.md create mode 100644 _posts/news/2017-05-28-llvm-repos.md diff --git a/_posts/help/2017-05-28-llvm.md b/_posts/help/2017-05-28-llvm.md new file mode 100644 index 0000000..a58a4c3 --- /dev/null +++ b/_posts/help/2017-05-28-llvm.md @@ -0,0 +1,36 @@ +--- +category: help +layout: help +mirrorid: llvm +--- + +## LLVM Git Repos 镜像使用帮助 + +本镜像镜像了官方的以下仓库: + +``` +http://llvm.org/git/{llvm,clang,libcxx,lldb,clang-tools-extra,polly,zorg,compiler-rt,libcxxabi,lld,lnt} +``` +若需要其他的仓库,可从 [LLVM 官方](http://llvm.org) 或者 [GitHub 镜像](https://github.com/llvm-mirror) 获取。 +使用方法: + +``` +git clone https://mirrors.tuna.tsinghua.edu.cn/git/llvm/{reponame}.git +``` + +其中`{reponame}`为上述的仓库名称之一。请注意:由于仓库体积均较大,执行`git clone`可能需要较长时间,并且没有进度提示,请耐心等候。 + +若要将 TUNA mirror 加入已有代码库,可在已有仓库中运行 + +``` +git remote add tuna https://mirrors.tuna.tsinghua.edu.cn/git/llvm/{reponame}.git +``` + +或运行 + +``` +git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/llvm/{reponame}.git +``` + +将默认上游设置为 TUNA 镜像 + diff --git a/_posts/news/2017-05-28-llvm-repos.md b/_posts/news/2017-05-28-llvm-repos.md new file mode 100644 index 0000000..4cb59c7 --- /dev/null +++ b/_posts/news/2017-05-28-llvm-repos.md @@ -0,0 +1,11 @@ +--- +category: news +layout: news +title: "新增 LLVM 编译器套件 Git 仓库镜像" +author: Harry Chen +--- + +TUNA 镜像站新增来自 LLVM 编译器套件的多个 Git 仓库镜像。 + +[LLVM](http://llvm.org) 是著名的开源编译器基础设施,由编译器后端(llvm)、编译器前端(clang)、调试器(lldb)、C++运行库(libcxx)等多个套件组成。 +为方便用户获取其源码,我们对官方的大部分仓库进行了镜像。详细说明以及使用方法请参见 [LLVM Git Repos 镜像使用帮助](help/llvm/) diff --git a/static/js/index.es6 b/static/js/index.es6 index b2d74f2..8c97d02 100644 --- a/static/js/index.es6 +++ b/static/js/index.es6 @@ -61,6 +61,9 @@ var mir_tmpl = $("#template").text(), 'CocoaPods': { 'url': "/help/CocoaPods/" }, + 'llvm': { + 'url': "/help/llvm/" + } }, descriptions = { {% for mir in site.data.mirror_desc %} '{{mir.name}}': '{{mir.desc}}' {% if forloop.index < forloop.length %},{% endif %}{% endfor %}