mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-30 00:23:16 +08:00
Format output
This commit is contained in:
parent
9553209860
commit
a7c5f9415b
16
chsrc.c
16
chsrc.c
@ -1750,21 +1750,21 @@ target_info
|
|||||||
|
|
||||||
#define targetinfo(t) (const char*)t
|
#define targetinfo(t) (const char*)t
|
||||||
static const char
|
static const char
|
||||||
*pl_ruby [] = {"gem", "ruby", "rb", "rubygems", NULL, targetinfo(&pl_ruby_target)},
|
*pl_ruby [] = {"gem", "ruby", "rubygem", "rb", "rubygems",NULL, targetinfo(&pl_ruby_target)},
|
||||||
*pl_python[] = {"pip", "python", "py", "pypi", NULL, targetinfo(&pl_python_target)},
|
*pl_python[] = {"pip", "python", "pypi", "py", NULL, targetinfo(&pl_python_target)},
|
||||||
*pl_nodejs[] = {"npm", "node", "js", "nodejs", "yarn", NULL, targetinfo(&pl_nodejs_target)},
|
*pl_nodejs[] = {"npm", "node", "nodejs", "js", "yarn", NULL, targetinfo(&pl_nodejs_target)},
|
||||||
*pl_perl [] = {"perl", "cpan", NULL, targetinfo(&pl_perl_target)},
|
*pl_perl [] = {"perl", "cpan", NULL, targetinfo(&pl_perl_target)},
|
||||||
*pl_php [] = {"php", "composer", NULL, targetinfo(&pl_php_target)},
|
*pl_php [] = {"php", "composer", NULL, targetinfo(&pl_php_target)},
|
||||||
*pl_lua [] = {"lua", "luarocks", NULL, targetinfo(&pl_lua_target)},
|
*pl_lua [] = {"lua", "luarocks", NULL, targetinfo(&pl_lua_target)},
|
||||||
*pl_go [] = {"go", "golang", "goproxy", NULL, targetinfo(&pl_go_target)} ,
|
*pl_go [] = {"go", "golang", "goproxy", NULL, targetinfo(&pl_go_target)} ,
|
||||||
*pl_rust [] = {"rust", "cargo", "crate", "crates", NULL, targetinfo(&pl_rust_target)},
|
*pl_rust [] = {"rust", "cargo", "crate", "crates", NULL, targetinfo(&pl_rust_target)},
|
||||||
*pl_java [] = {"java", "maven", "gradle", NULL, targetinfo(&pl_java_target)},
|
*pl_java [] = {"java", "maven", "gradle", NULL, targetinfo(&pl_java_target)},
|
||||||
*pl_clojure[] ={"clojure","clojars","leiningen", "lein", NULL, targetinfo(&pl_clojure_target)},
|
*pl_clojure[] ={"clojure","clojars","cloj", "lein", "leiningen", NULL, targetinfo(&pl_clojure_target)},
|
||||||
*pl_dart [] = {"dart", "pub", "flutter", NULL, targetinfo(&pl_dart_target)},
|
*pl_dart [] = {"dart", "pub", "flutter", NULL, targetinfo(&pl_dart_target)},
|
||||||
*pl_dotnet[] = {"nuget", "net", ".net", "dotnet", NULL, targetinfo(&pl_dotnet_target)},
|
*pl_dotnet[] = {"nuget", "net", ".net", "dotnet", NULL, targetinfo(&pl_dotnet_target)},
|
||||||
*pl_haskell[] ={"haskell", "cabal", "stack", "hackage", NULL, targetinfo(&pl_haskell_target)},
|
*pl_haskell[] ={"haskell", "cabal", "stack", "hackage", NULL, targetinfo(&pl_haskell_target)},
|
||||||
*pl_ocaml[] = {"ocaml", "opam", NULL, targetinfo(&pl_ocaml_target)},
|
*pl_ocaml[] = {"ocaml", "opam", NULL, targetinfo(&pl_ocaml_target)},
|
||||||
*pl_r [] = {"r", "cran", NULL, targetinfo(&pl_r_target)},
|
*pl_r [] = {"cran", "r", NULL, targetinfo(&pl_r_target)},
|
||||||
*pl_julia [] = {"julia", NULL, targetinfo(&pl_julia_target)},
|
*pl_julia [] = {"julia", NULL, targetinfo(&pl_julia_target)},
|
||||||
**pl_packagers[] =
|
**pl_packagers[] =
|
||||||
{
|
{
|
||||||
@ -1801,7 +1801,7 @@ static const char
|
|||||||
*os_ubuntu [] = {"ubuntu", NULL, targetinfo(&os_ubuntu_target)},
|
*os_ubuntu [] = {"ubuntu", NULL, targetinfo(&os_ubuntu_target)},
|
||||||
*os_debian [] = {"debian", "deb", NULL, targetinfo(&os_debian_target)},
|
*os_debian [] = {"debian", "deb", NULL, targetinfo(&os_debian_target)},
|
||||||
*os_fedora [] = {"fedora", NULL, targetinfo(&os_fedora_target)},
|
*os_fedora [] = {"fedora", NULL, targetinfo(&os_fedora_target)},
|
||||||
*os_opensuse [] = {"opensuse","suse", NULL, targetinfo(&os_opensuse_target)},
|
*os_opensuse [] = {"suse", "opensuse", NULL, targetinfo(&os_opensuse_target)},
|
||||||
*os_kali [] = {"kali", NULL, targetinfo(&os_kali_target)},
|
*os_kali [] = {"kali", NULL, targetinfo(&os_kali_target)},
|
||||||
*os_msys2 [] = {"msys2", "msys", NULL, targetinfo(&os_msys2_target)},
|
*os_msys2 [] = {"msys2", "msys", NULL, targetinfo(&os_msys2_target)},
|
||||||
*os_arch [] = {"arch", NULL, targetinfo(&os_arch_target)},
|
*os_arch [] = {"arch", NULL, targetinfo(&os_arch_target)},
|
||||||
@ -1814,8 +1814,8 @@ static const char
|
|||||||
*os_netbsd [] = {"netbsd", NULL, targetinfo(&os_netbsd_target)},
|
*os_netbsd [] = {"netbsd", NULL, targetinfo(&os_netbsd_target)},
|
||||||
*os_openbsd [] = {"openbsd", NULL, targetinfo(&os_openbsd_target)},
|
*os_openbsd [] = {"openbsd", NULL, targetinfo(&os_openbsd_target)},
|
||||||
*os_deepin [] = {"deepin", NULL, targetinfo(&os_deepin_target)},
|
*os_deepin [] = {"deepin", NULL, targetinfo(&os_deepin_target)},
|
||||||
*os_openeuler [] = {"openeuler", "euler", NULL, targetinfo(&os_openeuler_target)},
|
*os_openeuler [] = {"euler", "openeuler", NULL, targetinfo(&os_openeuler_target)},
|
||||||
*os_openkylin [] = {"openkylin", NULL, targetinfo(&os_openkylin_target)},
|
*os_openkylin [] = {"kylin", "openkylin", NULL, targetinfo(&os_openkylin_target)},
|
||||||
**os_systems[] =
|
**os_systems[] =
|
||||||
{
|
{
|
||||||
os_ubuntu, os_debian, os_fedora, os_opensuse, os_kali,
|
os_ubuntu, os_debian, os_fedora, os_opensuse, os_kali,
|
||||||
|
15
sources.h
15
sources.h
@ -25,9 +25,11 @@ typedef struct {
|
|||||||
#define Big_File_deepin "/20.9/deepin-desktop-community-20.9-amd64.iso" // 4GB左右
|
#define Big_File_deepin "/20.9/deepin-desktop-community-20.9-amd64.iso" // 4GB左右
|
||||||
|
|
||||||
|
|
||||||
// 教育网
|
/**
|
||||||
// 我们目前根据 https://github.com/mirrorz-org/oh-my-mirrorz 挑选速度前10位
|
* 教育网镜像
|
||||||
//
|
*
|
||||||
|
* 我们目前根据 https://github.com/mirrorz-org/oh-my-mirrorz 挑选速度前10位
|
||||||
|
*/
|
||||||
mirror_info
|
mirror_info
|
||||||
MirrorZ = {"mirrorz", "MirrorZ", "MirrorZ 校园网镜像站", "https://mirrors.cernet.edu.cn/", NULL},
|
MirrorZ = {"mirrorz", "MirrorZ", "MirrorZ 校园网镜像站", "https://mirrors.cernet.edu.cn/", NULL},
|
||||||
|
|
||||||
@ -66,7 +68,7 @@ mirror_info
|
|||||||
"https://mirrors.nju.edu.cn/archlinux" Big_File_archlinux};
|
"https://mirrors.nju.edu.cn/archlinux" Big_File_archlinux};
|
||||||
|
|
||||||
|
|
||||||
// @ccmywish: 2023-09-05 我只使用了不到5次,重庆大学镜像站就把我的ip封杀了,对用户来说封杀策略过严,暂时不可靠,暂时不用
|
// @ccmywish: [2023-09-05] 我只使用了不到5次,重庆大学镜像站就把我的ip封杀了,对用户来说封杀策略过严,暂时不可靠,暂时不用
|
||||||
//
|
//
|
||||||
// Cqu = {"cqu", "CQU", "重庆大学开源软件镜像站", "https://mirrors.cqu.edu.cn/",
|
// Cqu = {"cqu", "CQU", "重庆大学开源软件镜像站", "https://mirrors.cqu.edu.cn/",
|
||||||
// "https://mirrors.cqu.edu.cn/speedtest/1000mb.bin"};
|
// "https://mirrors.cqu.edu.cn/speedtest/1000mb.bin"};
|
||||||
@ -74,11 +76,10 @@ mirror_info
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 商业公司提供的源
|
||||||
*
|
*
|
||||||
|
* @note 腾讯软件源中,有很多链接都已失效,请仔细检查
|
||||||
*/
|
*/
|
||||||
// 商业公司提供的源
|
|
||||||
//
|
|
||||||
// @note 腾讯软件源中,有很多链接都已失效,请仔细检查
|
|
||||||
mirror_info
|
mirror_info
|
||||||
Ali = {"ali", "Ali OPSX", "阿里巴巴开源镜像站", "https://developer.aliyun.com/mirror/",
|
Ali = {"ali", "Ali OPSX", "阿里巴巴开源镜像站", "https://developer.aliyun.com/mirror/",
|
||||||
"https://mirrors.aliyun.com/deepin-cd" Big_File_deepin},
|
"https://mirrors.aliyun.com/deepin-cd" Big_File_deepin},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user