git buildpackage 的用法

git buildpackage 的用法

基本作法:

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 at nchc.org.tw

signingkey = 12345678

\~/.gbp.conf

[DEFAULT]

# the default build command:

builder = debuild -i\.git/ -I.git -k0x46379ACF

[git-buildpackage]

sign-tags = True

keyid = 0x46379ACF

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

convert from Thomas blog post id 645 old convert log: ./132949/tag%3E2010%2003%20linux-git)

@2010 @03 @linux-git

Comments