diff --git a/doc/Write-A-Recipe-Even-If-You-Dont-Know-C.md b/doc/Write-A-Recipe-Even-If-You-Dont-Know-C.md index 246ebb7..c511885 100644 --- a/doc/Write-A-Recipe-Even-If-You-Dont-Know-C.md +++ b/doc/Write-A-Recipe-Even-If-You-Dont-Know-C.md @@ -6,7 +6,7 @@ ! Contributors : Nul None ! | ! Created On : <2024-08-19> - ! Last Modified : <2024-11-08> + ! Last Modified : <2024-11-23> ! ---------------------------------------------------------- --> # Write A Recipe Even If You Don't Know C @@ -17,7 +17,7 @@
-我鼓励你为新的软件添加换源支持,因为通过 `chsrc` 这将非常简单,你的贡献也将非常有价值。 +我鼓励你为新的软件添加换源支持,因为通过 `chsrc` 这将非常简单,你的贡献也将非常有价值。理论上每一个 `recipe` 都需要有专人长时间维护。 1. 本项目采用`GPLv3+`协议,是真正的**自由软件**,而非仅仅是开源软件 2. 代码规范灵活遵循`GNU`标准(若标准干扰了可维护性,则并不采纳) @@ -75,10 +75,10 @@ 5. 可以使用这些函数: - 1. `chsrc-framework.h` 中暴露出的任何 `chsrc_` 开头的函数或宏 + 1. `framework/core.c` 中以 `chsrc_` 开头的所有函数或宏 2. `xy.h` 中以 `xy_` 开头的所有函数或宏 -6. 在 `menu.c` 中添加用户可以使用的 `target` 别名 +6. 在 `recipe/menu.c` 中添加用户可以使用的 `target` 别名 7. 构建并运行 `chsrc set ` 测试,若无问题可提交 Pull Request diff --git a/src/recipe/lang/Clojure.c b/src/recipe/lang/Clojure.c index c51e89d..600d288 100644 --- a/src/recipe/lang/Clojure.c +++ b/src/recipe/lang/Clojure.c @@ -8,7 +8,7 @@ * ------------------------------------------------------------*/ /** - * @time 2023-09-10 更新 + * @update 2023-09-10 * @note 不太好换,且用户可能不多,我们暂时只给用户提供文档 */ static Source_t pl_clojure_sources[] = diff --git a/src/recipe/lang/Java.c b/src/recipe/lang/Java.c index 3b93b89..afbc024 100644 --- a/src/recipe/lang/Java.c +++ b/src/recipe/lang/Java.c @@ -8,7 +8,7 @@ * ------------------------------------------------------------*/ /** - * @time 2024-04-18 更新 + * @update 2024-04-18 * @note 缺少教育网或开源社区软件源 */ static Source_t pl_java_sources[] = diff --git a/src/recipe/os/APT/Armbian.c b/src/recipe/os/APT/Armbian.c index b53f6fb..9fcfbc3 100644 --- a/src/recipe/os/APT/Armbian.c +++ b/src/recipe/os/APT/Armbian.c @@ -12,8 +12,7 @@ /** * @update 2024-11-21 */ -static Source_t -os_armbian_sources[] = +static Source_t os_armbian_sources[] = { {&UpstreamProvider, "http://apt.armbian.com"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/armbian"}, diff --git a/src/recipe/os/APT/Raspberry-Pi-OS.c b/src/recipe/os/APT/Raspberry-Pi-OS.c index 0e4a646..11fea4a 100644 --- a/src/recipe/os/APT/Raspberry-Pi-OS.c +++ b/src/recipe/os/APT/Raspberry-Pi-OS.c @@ -10,7 +10,7 @@ * ------------------------------------------------------------*/ /** - * @time 2023-09-29 更新 + * @update 2023-09-29 */ static Source_t os_raspberrypi_sources[] = { diff --git a/src/recipe/os/APT/openKylin.c b/src/recipe/os/APT/openKylin.c index 3c948eb..b2a6b8f 100644 --- a/src/recipe/os/APT/openKylin.c +++ b/src/recipe/os/APT/openKylin.c @@ -11,7 +11,7 @@ * ------------------------------------------------------------*/ /** - * @time 2023-09-29 更新 + * @update 2023-09-29 */ static Source_t os_openkylin_sources[] = { diff --git a/src/recipe/os/YUM/AlmaLinux.c b/src/recipe/os/YUM/AlmaLinux.c index 7b57b2e..a69a2e9 100644 --- a/src/recipe/os/YUM/AlmaLinux.c +++ b/src/recipe/os/YUM/AlmaLinux.c @@ -8,7 +8,7 @@ * ------------------------------------------------------------*/ /** - * @time 2024-06-12 更新 + * @update 2024-06-12 */ static Source_t os_almalinux_sources[] = { diff --git a/src/recipe/os/pacman/MSYS2.c b/src/recipe/os/pacman/MSYS2.c index d36de89..419ec5d 100644 --- a/src/recipe/os/pacman/MSYS2.c +++ b/src/recipe/os/pacman/MSYS2.c @@ -8,7 +8,7 @@ * ------------------------------------------------------------*/ /** - * @time 2024-04-18 更新 + * @update 2024-04-18 */ static Source_t os_msys2_sources[] = { diff --git a/src/recipe/ware/Anaconda.c b/src/recipe/ware/Anaconda.c index da701bc..735b7fb 100644 --- a/src/recipe/ware/Anaconda.c +++ b/src/recipe/ware/Anaconda.c @@ -8,7 +8,7 @@ * ------------------------------------------------------------*/ /** - * @time 2023-09-10 更新 + * @update 2023-09-10 * @note 这些链接将会在setsrc函数中补充完整 */ static Source_t wr_anaconda_sources[] = diff --git a/src/recipe/ware/Homebrew.c b/src/recipe/ware/Homebrew.c index d834439..b092398 100644 --- a/src/recipe/ware/Homebrew.c +++ b/src/recipe/ware/Homebrew.c @@ -15,8 +15,7 @@ * 2. 不确定 Sustech 能否工作 * } */ -static Source_t -wr_homebrew_sources[] = +static Source_t wr_homebrew_sources[] = { {&UpstreamProvider, NULL}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/"},