From 3e230169e95ee24007609ce03a8ff6dbfb7c6807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=2C=20Lin=29?= Date: Wed, 24 Jul 2024 01:39:31 +0800 Subject: [PATCH] docs: README: Add missing instruction to remove the custom license declaration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林博仁(Buo-ren, Lin) --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 1f2bbaf..ab7b29e 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,22 @@ 1. 將 [real.gitattributes Git 路徑屬性配置文件](real.gitattributes)更名為「.gitattributes」 1. 替換 [.reuse/dep5 REUSE DEP5 機器可讀著作權宣告文件](.reuse/dep5)文件中的 `Upstream-Name`(替換為 _主題名稱_)欄位、 `Upstream-Contact`(替換為該主題專案議題追蹤系統的網頁標題與網址)欄位跟 `Source`(替換為專案網址)欄位 1. 將原始的 README.md 檔案使用 [real.README.md 主題說明文件模板](real.README.md) 替換 +1. 執行下列命令(或等效操作)將範本用自定義授權條款移除: + + ```bash + find_opts=( + -type f + -exec + sed + --in-place + --regexp-extended + --expression='s@ OR LicenseRef-Apache-2.0-If-Not-Used-In-Template-Projects@@g' + {} + ';' + ) + find . "${find_opts[@]}" + ``` + 1. 將變更提交為新修訂版(參考提交標題: `docs: 撰寫主題說明文件雛型`) 1. 將本地變更推送到遠端版控庫 1. 回到「自由知識協作平台 Libre Knowledge Collaboration Platform」主版控庫以下列修訂版提交訊息將新主題專案子模組的變更的提交為新修訂版: