-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mirror-help: add leopardsh.md (#145)
- Loading branch information
1 parent
16bb3e1
commit 1933d31
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
+++ | ||
title = "leopardsh" | ||
tags = ["mirror-help"] | ||
author = "zombie203619" | ||
+++ | ||
|
||
leopard.sh / tiger.sh 是一个 PowerPC Mac 上的包管理器,提供了许多常用软件包,节省了 PowerPC Mac 漫长的编译时间 | ||
|
||
**使用说明** | ||
|
||
**Mac OS X Tiger:** | ||
|
||
下载 `tiger.sh`,并运行安装 | ||
|
||
```bash | ||
curl -O http://leopard.sh/tigersh/tiger.sh | ||
chmod +x ./tiger.sh | ||
./tiger.sh | ||
``` | ||
|
||
安装完成后,脚本会移动到`/usr/local/bin`文件夹下,对其进行编辑: | ||
|
||
``` | ||
TIGERSH_MIRROR=${TIGERSH_MIRROR:-https://mirror.sjtu.edu.cn/leopardsh} | ||
``` | ||
|
||
``` | ||
size=$(curl --fail --silent --show-error --location -v $insecure_url 2>&1 \ | ||
| grep 'Content-Length:' \ | ||
| grep -v "0" \ | ||
| awk '{print $NF}' \ | ||
| sed "s/$(printf '\r')//" | ||
) | ||
``` | ||
|
||
**Mac OS X Leopard:** | ||
|
||
下载 `leopard.sh`,并运行安装 | ||
|
||
```bash | ||
curl -O http://leopard.sh/leopardsh/leopard.sh | ||
chmod +x ./leopard.sh | ||
./leopard.sh | ||
``` | ||
|
||
安装完成后,脚本会移动到`/usr/local/bin`文件夹下,对其进行编辑: | ||
|
||
``` | ||
LEOPARDSH_MIRROR=${LEOPARDSH_MIRROR:-https://mirror.sjtu.edu.cn/leopardsh} | ||
``` | ||
|
||
``` | ||
size=$(curl --fail --silent --show-error --location -v $insecure_url 2>&1 \ | ||
| grep 'Content-Length:' \ | ||
| grep -v "0" \ | ||
| awk '{print $NF}' \ | ||
| sed "s/$(printf '\r')//" | ||
) | ||
``` | ||
|
||
|