主程序(core)源代码获取:
从 https://cgit.freedesktop.org/libreoffice/core/ 底部可知其克隆地址如下
git clone git://anongit.freedesktop.org/libreoffice/core
我测试的该地址的克隆速度很快,因此不做优化。
编译时autogen选项若启用 –with-lang=zh-CN, 或卡在translation子模块获取环节(通过 git submodule update –progress 可以看到下载进度)。此时我选择使用github上的镜像来获取(https://github.com/LibreOffice/translations)。修改core下的 ./git/config 文件,修改translations的路径为:
https://github.com/LibreOffice/translations.git
但还是缓慢。网上搜了一下,发现github可以通过修改hosts文件提速,参考:https://www.jianshu.com/p/4caa9c291bfc
按照以上设置后,clone和pull速度达到7MB/s左右(北京移动光宽带)。
Leave a Reply