Add news and help for LLVM repos

Signed-off-by: Harry Chen <i@harrychen.xyz>
This commit is contained in:
Harry Chen 2017-05-29 00:35:47 +08:00
parent fdb8a51cf1
commit aab3c46fa5
No known key found for this signature in database
GPG Key ID: 9F98D3E7C18D0378
3 changed files with 50 additions and 0 deletions

View File

@ -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 镜像

View File

@ -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/)

View File

@ -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 %}