Skip to content

Commit 6267972

Browse files
committed
Misc
1 parent 25965b1 commit 6267972

File tree

6 files changed

+12
-19
lines changed

6 files changed

+12
-19
lines changed

doc/10-如何编写recipe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<br>
2020

21-
我鼓励你为新的软件添加换源支持,因为通过 `chsrc` 框架,这将比写 shell 脚本更加轻松,你的贡献也将非常有价值。理论上每一个 `recipe` 都需要有专人长时间维护 ([招募](https://github.com/RubyMetric/chsrc/issues/130))。
21+
我鼓励你为新的软件添加换源支持,因为通过 `chsrc` 框架,这将比写 shell 脚本更加轻松,你的贡献也将非常有价值。理论上每一个 `recipe` 都需要有专人长时间维护 ([招募](https://github.com/RubyMetric/chsrc/issues/275))。
2222

2323
- 本项目采用 `GPLv3+` 协议,是真正的**自由软件**,而非仅仅是开源软件
2424
- 代码规范灵活遵循 `GNU` 标准(若标准干扰了可维护性,则并不采纳)

doc/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
! -------------------------------------------------------------
44
! Doc Type : Markdown
55
! Doc Name : (Document Introduction.md)
6-
! Doc Authors : Aoran Zeng <[email protected]>
7-
! Contributors : Nul None <[email protected]>
6+
! Doc Authors : 曾奥然 <[email protected]>
7+
! Contributors : Nul None <[email protected]>
88
! |
99
! Created On : <2024-12-27>
10-
! Last Modified : <2025-08-11>
10+
! Last Modified : <2025-08-22>
1111
! ---------------------------------------------------------- -->
1212

1313
# 文档说明
@@ -23,7 +23,7 @@ E2E (End-to-End) 开发文档:
2323
具体 recipe 相关:
2424

2525
- 如何编写一个具体的 recipe,请参考 [10-如何编写recipe.md](./10-如何编写recipe.md)
26-
- 如何修改换源URL、模糊/精准测速URL,请参考 [11-如何设置换源链接与测速链接.md](./11-如何设置换源链接与测速链接.md)
26+
- 如何修改换源链接、模糊/精准测速链接,请参考 [11-如何设置换源链接与测速链接.md](./11-如何设置换源链接与测速链接.md)
2727

2828
<br>
2929

src/chsrc-main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ cli_print_target_features (Target_t *target, const char *input_target_name)
294294
}
295295

296296
{
297-
char *msg = ENGLISH ? " UserDefine: using user-defined source URL " : " UserDefine: 用户自定义换源URL ";
297+
char *msg = ENGLISH ? " UserDefine: using user-defined source link " : " UserDefine: 用户自定义换源链接 ";
298298
char *user_define_msg = xy_strcat (5, msg, "| chsrc set ", input_target_name, " https://user-define-url.org/", input_target_name);
299299
if (target->can_user_define) printf (" %s%s\n", bdgreen(YesMark), purple(user_define_msg));
300300
else printf (" %s%s\n", bdred(NoMark), user_define_msg);br();
@@ -426,7 +426,7 @@ cli_print_version ()
426426
void
427427
cli_print_help ()
428428
{
429-
char *version_string = purple("v" Chsrc_Version "-" Chsrc_Release_Date);
429+
char *version_string = "v" Chsrc_Version "-" Chsrc_Release_Date;
430430

431431
const char *raw = CHINESE ? RAWSTR_chsrc_USAGE_CHINESE : RAWSTR_chsrc_USAGE_ENGLISH;
432432

@@ -615,7 +615,7 @@ get_target (const char *input, TargetOp code, char *option)
615615

616616
{
617617
char *msg1 = ENGLISH ? "Mirror abbr" : "镜像站简写";
618-
char *msg2 = ENGLISH ? "Source URL" : "换源URL";
618+
char *msg2 = ENGLISH ? "Source URL" : "换源链接";
619619
char *msg3 = ENGLISH ? "Mirror Name" : "镜像站";
620620
char *format = ENGLISH ? " %-13s%-33s%-38s%s\n" : " %-13s%-36s%-46s%s\n";
621621
printf (format, "code", msg1, msg2, msg3);

src/framework/chef.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ chef_set_provider_speed_measure_accuracy (SourceProvider_t *provider, bool accur
113113

114114

115115
/**
116-
* @brief 提供一个函数,这个函数基于 "换源 URL" 和用户提供的数据来构造和填充精准测速链接
116+
* @brief 提供一个函数,这个函数基于 "换源链接" 和用户提供的数据来构造和填充精准测速链接
117117
*/
118118
void
119119
chef_set_sources_speed_measure_url_with_func (
@@ -143,7 +143,7 @@ chef_set_sources_speed_measure_url_with_func (
143143

144144

145145
/**
146-
* @brief 给 "换源 URL" 增加一个后缀来构造和填充专用测速链接
146+
* @brief 给 "换源链接" 增加一个后缀来构造和填充专用测速链接
147147
*/
148148
void
149149
chef_set_sources_speed_measure_url_with_postfix (Target_t *target, char *postfix)

src/framework/struct.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,6 @@ typedef struct Target_t
158158
Target_t;
159159

160160

161-
typedef struct TargetRegisterInfo_t
162-
{
163-
Target_t *target; /* target 本身 */
164-
void (*prelude) (void); /* 填充 target 信息等预置操作 */
165-
}
166-
TargetRegisterInfo_t;
167-
168161

169162
#define def_target(t, aliases) void t##_getsrc(char *option);void t##_setsrc(char *option);void t##_resetsrc(char *option); Target_t t##_target={aliases};
170163

src/rawstr4c.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
邀请您担任 Chef, 为用户把关您熟悉的 recipe
7373
7474
源代码地址: https://github.com/RubyMetric/chsrc
75-
成为维护者: https://github.com/RubyMetric/chsrc/issues/130
75+
成为维护者: https://github.com/RubyMetric/chsrc/issues/275
7676
```
7777

7878
<br>
@@ -123,7 +123,7 @@ MAINTAIN:
123123
We invite you to become a Chef to ensure the quality of recipes you are familiar with for users:
124124
125125
Source Code: @url@
126-
Become a Maintainer: https://github.com/RubyMetric/chsrc/issues/130
126+
Become a Maintainer: https://github.com/RubyMetric/chsrc/issues/275
127127
```
128128

129129
<br>

0 commit comments

Comments
 (0)