各位好,在上次的irc conf中,小弟最後沒有講解 maintain的部份,所以希望這次能將它補齊,做一個好的ending...
這次上次的log:
http://ircconf.debian.org.tw/log/2003-09-13.html
Maintain的內容如下:
New Debian Release
當我們要對目前的版本做修正時,只要重寫 changelog 中的敘述,以上面的 gv4l 來說,版本為 gv4l-2.0.2-1,那我們想要把 release 的編號加 "1":
-------------------------------------------------------
asho@SeXyDebian:/home/build/gv4l-2.0.2$ debchange -i
gv4l (2.0.2-2) unstable; urgency=low
* release increment
-- Asho Yeh <asho@ms44.url.com.tw> Tue, 16 Sep 2003 23:32:30 +0800
gv4l (2.0.2-1) unstable; urgency=low
* The first uploaded version
-- Asho Yeh <asho@asho.dyndns.org> Tue, 9 Sep 2003 17:04:40 +0800
-------------------------------------------------------
存檔之後,重新編譯就會出現類似 gv4l-2.0.2-2的檔案了。
-------------------------------------------------------
asho@SeXyDebian:/home/build$ ls
gv4l-2.0.2 gv4l_2.0.2-2.dsc gv4l_2.0.2-2_i386.deb
gv4l_2.0.2-2.diff.gz gv4l_2.0.2-2_i386.changes gv4l_2.0.2.orig.tar.gz
-------------------------------------------------------
New upstream release
以上是針對Debian release,如果該軟體有新的版本出現了,我們要怎麼將新版本與舊版本的資訊合併呢?
承接上面的 gv4l-2.0.2,假如現在有新的版本 2.0.3出現:gv4l-2.0.3.tar.gz,那請依照下列的步驟將舊版本與新版本合併。
1. 下載 gv4l-2.0.3.tar.gz
-------------------------------------------------------
asho@SeXyDebian:~/build$ ls
gv4l-2.0.2 gv4l-2.0.3.tar.gz
-------------------------------------------------------
2. 切換到舊的 gv4l-2.0.2 目錄下
-------------------------------------------------------
asho@SeXyDebian:~/build/gv4l-2.0.2/debian$ pwd
/home/asho/build/gv4l-2.0.2
-------------------------------------------------------
3. 執行 uupdate -u ../gv4l-2.0.3.tar.gz
-------------------------------------------------------
asho@SeXyDebian:~/build/gv4l-2.0.2$ uupdate -u ../gv4l-2.0.3.tar.gz
New Release will be 2.0.3-1.
Symlinking to pristine source from gv4l_2.0.3.orig.tar.gz...
-- Untarring the new sourcecode archive ../gv4l-2.0.3.tar.gz
Success! The diffs from version 2.0.2-1 worked fine.
Remember: Your current directory is the OLD sourcearchive!
Do a "cd ../gv4l-2.0.3" to see the new package
-------------------------------------------------------
4. 跳到 gv4l-2.0.2 目錄的上一層,並切換到新的目錄 gv4l-2.0.3,來看一下新的changelog
-------------------------------------------------------
gv4l (2.0.3-1) unstable; urgency=low
* New upstream release
-- Asho Yeh <asho@ms44.url.com.tw> Thu, 18 Sep 2003 14:30:26 +0800
gv4l (2.0.2-1) unstable; urgency=low
* Initial Release.
-- Asho Yeh <asho@ms44.url.com.tw> Thu, 18 Sep 2003 14:29:06 +0800
-------------------------------------------------------
5. 執行 dpkg-buildpackage 產生deb
-------------------------------------------------------
asho@SeXyDebian:~/build$ ls
gv4l-2.0.2 gv4l_2.0.2.orig.tar.gz gv4l_2.0.3-1_i386.deb
gv4l_2.0.2-1.diff.gz gv4l-2.0.3 gv4l_2.0.3.orig.tar.gz
gv4l_2.0.2-1.dsc gv4l_2.0.3-1.diff.gz gv4l-2.0.3.tar.gz
gv4l_2.0.2-1_i386.changes gv4l_2.0.3-1.dsc
gv4l_2.0.2-1_i386.deb gv4l_2.0.3-1_i386.changes
-------------------------------------------------------
很簡單吧...相信透過debian內的工具,每個人都可以當maintainer呢...