Ajust targets order

This commit is contained in:
Aoran Zeng 2023-10-04 18:25:44 +08:00
parent 0d5adeb37f
commit c2983fca38
2 changed files with 13 additions and 13 deletions

View File

@ -55,7 +55,7 @@ curl -L https://gitee.com/RubyMetric/chsrc/releases/download/preview/chsrc-x64-m
### BSD
*BSD 用户需要按照下述命令编译,编译好即可运行 `./chsrc`
BSD 用户需要按照下述命令编译,编译好即可运行 `./chsrc`
```bash
git clone https://gitee.com/RubyMetric/chsrc.git; cd chsrc; clang chsrc.c -o chsrc
```
@ -147,20 +147,21 @@ sudo chsrc set rocky 或 set rockylinux
sudo chsrc set alpine
sudo chsrc set void 或 set voidlinux
sudo chsrc set solus
sudo chsrc set ros 或 set ros2
sudo chsrc set trisquel
sudo chsrc set lite 或 set linuxlite
sudo chsrc set raspi 或 set raspberrypi
sudo chsrc set freebsd
sudo chsrc set openbsd
sudo chsrc set netbsd
# 国产操作系统
sudo chsrc set deepin
sudo chsrc set euler 或 set openeuler
sudo chsrc set kylin 或 set openkylin
chsrc set msys2 或 set msys
# BSD
sudo chsrc set freebsd
sudo chsrc set openbsd
sudo chsrc set netbsd
```
<br>

13
chsrc.c
View File

@ -3,7 +3,7 @@
* License : GPLv3
* Authors : Aoran Zeng <ccmywish@qq.com>
* Created on : <2023-08-28>
* Last modified : <2023-09-29>
* Last modified : <2023-10-04>
*
* chsrc:
*
@ -12,7 +12,7 @@
* GPLv3 LICENSE.txt
* ------------------------------------------------------------*/
#define Chsrc_Version "v0.1.2-20230929"
#define Chsrc_Version "v0.1.2-2023/10/04"
#include "chsrc.h"
@ -1983,18 +1983,17 @@ static const char
*os_deepin [] = {"deepin", NULL, targetinfo(&os_deepin_target)},
*os_openeuler [] = {"euler", "openeuler", NULL, targetinfo(&os_openeuler_target)},
*os_openkylin [] = {"kylin", "openkylin", NULL, targetinfo(&os_openkylin_target)},
*os_ros [] = {"ros", "ros", NULL, targetinfo(&os_ros_target)},
*os_ros [] = {"ros", "ros2", NULL, targetinfo(&os_ros_target)},
**os_systems[] =
{
os_ubuntu, os_mint, os_debian, os_fedora, os_opensuse, os_kali,
os_arch, os_manjaro, os_gentoo,
os_rocky,
os_alpine, os_void, os_solus,
os_alpine, os_void, os_solus, os_ros,
os_trisquel, os_linuxlite, os_raspberrypi,
os_freebsd, os_netbsd, os_openbsd,
os_msys2,
os_deepin, os_openeuler, os_openkylin,
os_ros
os_msys2,
os_freebsd, os_netbsd, os_openbsd,
};