aboutsummaryrefslogtreecommitdiffstats
path: root/wspkg-doc/debian.txt
diff options
context:
space:
mode:
Diffstat (limited to 'wspkg-doc/debian.txt')
-rw-r--r--wspkg-doc/debian.txt28
1 files changed, 14 insertions, 14 deletions
diff --git a/wspkg-doc/debian.txt b/wspkg-doc/debian.txt
index 43ac595..1e8d5bc 100644
--- a/wspkg-doc/debian.txt
+++ b/wspkg-doc/debian.txt
@@ -3,25 +3,25 @@ wspkg - Debian 支援:dpkg 與 apt
217 工作站實驗室 <217ta@csie.ntu.edu.tw>
-------------------------------------------------------------------------------
-
- +---------------------+
- | Debian package list |
- | debian.list |-+
- +---------------------+ | debian.control.sh +-------------------+
- +------------------>>>>| dpkg control file |
-+-----------------------+ | | debian.control |
-| dpkg control template |-+ +-------------------+
-| debian.control.in |
-+-----------------------+
-
+ +------------------------+
+ | Debian package list |
+ | <list>/out/<list>.list |--+ debian/debian.mk
+ +------------------------+ | debian/debian.deps.sh
+ +------------------------+
+ +--------------------------+ | |
+ | dpkg control template |-+ v
+ | <list>/<list>.control.in | +---------------------------+
+ +--------------------------+ | dpkg control file |
+ | <list>/out/<list>.control |
+ +---------------------------+
-------------------------------------------------------------------------------
產生 dpkg control 檔案
----------------------
由於 dpkg control 檔案有很多欄位,如果全部用 script 產生,那麼 script 會很亂。
-所以我們改為編寫一個簡單的 template 檔案,即 debian.control.in,再由簡單的
-script 將 template 檔案中的空格,依照 debian.list 中的列表填上,產生真正的
-dpkg control 檔案,即 debian.control。
+所以我們改為編寫一個簡單的 template 檔案,即 debian.control.in,再使用 sed 將
+template 檔案中的空格填入對應的值。其中 `@DEPS@` 會替換清單中指定的所有套件,
+由於格式較為複雜,這樣功能獨立放在 debian.deps.sh 中。
產生 meta-package
-----------------