基本作法:
Init 抓git repository
git clone git://server/prohect.git
建branch 叫作 upstream(ref /etc/git-buildpackage/gbp.conf)
git branch -m master upstream
切回master
git branch master
git checkout master
之後要update
git checkout upstream
git pull
git checkout master
git merge upstream
執行
git-buildpackage
正常情況可以忽略 signkey 然後 build 出 deb
如果要sign tag or something…
建議修改設定檔
ex:
~/.gitconfig
[user]
name = Thomas Tsai
email = thomas@nchc.org.tw
signingkey = 12345678
~/.gbp.conf
[DEFAULT]
# the default build command:
builder = debuild -i\.git/ -I.git -k0×46379ACF
[git-buildpackage]
sign-tags = True
keyid = 0×46379ACF
export-dir = ../download/export/
tarball-dir = ../download/testing/src/
ignore-new = True
參考:http://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.man.git.buildpackage.html
參考:http://blog.rmi.twbbs.org/2010/01/gitdebian-packaging-desmume.html

The git buildpackage 的用法 by 擁抱自由,使用 linux !, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 Taiwan License.


Add A Comment