mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-01-22 23:54:00 +08:00
Modify mysys2 to msys2 in chsrc.c and chsrc.h
This commit is contained in:
parent
18863a065b
commit
e25d81036e
14
chsrc.c
14
chsrc.c
|
@ -1041,18 +1041,18 @@ os_openbsd_setsrc(char* option)
|
||||||
* 未经测试
|
* 未经测试
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
os_mysys2_setsrc(char* option)
|
os_msys2_setsrc(char* option)
|
||||||
{
|
{
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
|
||||||
if (NULL!=option) {
|
if (NULL!=option) {
|
||||||
index = lets_find_mirror(os_mysys2, option);
|
index = lets_find_mirror(os_msys2, option);
|
||||||
} else {
|
} else {
|
||||||
index = lets_test_speed(os_mysys2);
|
index = lets_test_speed(os_msys2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
source_info source = os_mysys2_sources[index];
|
source_info source = os_msys2_sources[index];
|
||||||
chsrc_say_selection(&source);
|
chsrc_say_selection(&source);
|
||||||
|
|
||||||
|
|
||||||
|
@ -1266,7 +1266,7 @@ target_info
|
||||||
os_fedora_target = {os_fedora_setsrc, NULL, os_fedora_sources, 7},
|
os_fedora_target = {os_fedora_setsrc, NULL, os_fedora_sources, 7},
|
||||||
os_kali_target = {os_kali_setsrc, NULL, os_kali_sources, 7},
|
os_kali_target = {os_kali_setsrc, NULL, os_kali_sources, 7},
|
||||||
os_openbsd_target = {os_openbsd_setsrc, NULL, os_openbsd_sources, 7},
|
os_openbsd_target = {os_openbsd_setsrc, NULL, os_openbsd_sources, 7},
|
||||||
os_mysys2_target = {os_mysys2_setsrc, NULL, os_mysys2_sources, 7},
|
os_msys2_target = {os_msys2_setsrc, NULL, os_msys2_sources, 7},
|
||||||
os_arch_target = {os_arch_setsrc, NULL, os_arch_sources, 7},
|
os_arch_target = {os_arch_setsrc, NULL, os_arch_sources, 7},
|
||||||
os_gentoo_target = {os_gentoo_setsrc, NULL, os_gentoo_sources, 7},
|
os_gentoo_target = {os_gentoo_setsrc, NULL, os_gentoo_sources, 7},
|
||||||
os_netbsd_target = {os_netbsd_setsrc, NULL, os_netbsd_sources, 7};
|
os_netbsd_target = {os_netbsd_setsrc, NULL, os_netbsd_sources, 7};
|
||||||
|
@ -1276,13 +1276,13 @@ static const char const
|
||||||
*os_fedora [] = {"fedora", NULL, targetinfo(&os_fedora_target)},
|
*os_fedora [] = {"fedora", NULL, targetinfo(&os_fedora_target)},
|
||||||
*os_kali [] = {"kali", NULL, targetinfo(&os_kali_target)},
|
*os_kali [] = {"kali", NULL, targetinfo(&os_kali_target)},
|
||||||
*os_openbsd [] = {"openbsd", NULL, targetinfo(&os_openbsd_target)},
|
*os_openbsd [] = {"openbsd", NULL, targetinfo(&os_openbsd_target)},
|
||||||
*os_mysys2 [] = {"mysys2", NULL, targetinfo(&os_mysys2_target)},
|
*os_msys2 [] = {"msys2", NULL, targetinfo(&os_msys2_target)},
|
||||||
*os_arch [] = {"arch", NULL, targetinfo(&os_arch_target)},
|
*os_arch [] = {"arch", NULL, targetinfo(&os_arch_target)},
|
||||||
*os_gentoo [] = {"gentoo", NULL, targetinfo(&os_gentoo_target)},
|
*os_gentoo [] = {"gentoo", NULL, targetinfo(&os_gentoo_target)},
|
||||||
*os_netbsd [] = {"netbsd", NULL, targetinfo(&os_netbsd_target)},
|
*os_netbsd [] = {"netbsd", NULL, targetinfo(&os_netbsd_target)},
|
||||||
**os_systems[] =
|
**os_systems[] =
|
||||||
{
|
{
|
||||||
os_ubuntu, os_debian,os_fedora,os_kali,os_openbsd,os_mysys2,os_arch,os_gentoo,os_netbsd
|
os_ubuntu, os_debian,os_fedora,os_kali,os_openbsd,os_msys2,os_arch,os_gentoo,os_netbsd
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
4
chsrc.h
4
chsrc.h
|
@ -365,7 +365,7 @@ os_openbsd_sources[] = {
|
||||||
*
|
*
|
||||||
* TODO: 1. 源并不完整,且未经测试是否有效
|
* TODO: 1. 源并不完整,且未经测试是否有效
|
||||||
*/
|
*/
|
||||||
os_mysys2_sources[] = {
|
os_msys2_sources[] = {
|
||||||
{&Ali, "https://mirrors.aliyun.com/msys2/"},
|
{&Ali, "https://mirrors.aliyun.com/msys2/"},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/msys2/"},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/msys2/"},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/msys2/"},
|
{&Ustc, "https://mirrors.ustc.edu.cn/msys2/"},
|
||||||
|
@ -471,7 +471,7 @@ def_target_sources_n(pl_rust); def_target_sources_n(pl_java); def_target_sourc
|
||||||
def_target_sources_n(pl_r); def_target_sources_n(pl_julia);
|
def_target_sources_n(pl_r); def_target_sources_n(pl_julia);
|
||||||
|
|
||||||
def_target_sources_n(os_ubuntu); def_target_sources_n(os_debian); def_target_sources_n(os_fedora);
|
def_target_sources_n(os_ubuntu); def_target_sources_n(os_debian); def_target_sources_n(os_fedora);
|
||||||
def_target_sources_n(os_kali); def_target_sources_n(os_openbsd); def_target_sources_n(os_mysys2);
|
def_target_sources_n(os_kali); def_target_sources_n(os_openbsd); def_target_sources_n(os_msys2);
|
||||||
def_target_sources_n(os_arch); def_target_sources_n(os_gentoo); def_target_sources_n(os_netbsd);
|
def_target_sources_n(os_arch); def_target_sources_n(os_gentoo); def_target_sources_n(os_netbsd);
|
||||||
|
|
||||||
/* Target Info */
|
/* Target Info */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user