mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 01:14:53 +01:00
debian: Add a gbp.conf to start using git-buildpackage
On Bdale Garbee's recommendation I'm switching from gitpkg, (which constructed a source tree but still required me to go run debuild), to git-buildpackage. I hadn't originally used git-buildpackage because it didn't seem to work without a configuration file, (where gitpkg was fine). Bdale was kind enough to point me to his fw/altos source at git.gag.com where I found an example gpb.conf file as well as a target in debian/rules to automatically update debian/changelog with the new version number.
This commit is contained in:
parent
4906f6b9ae
commit
2608bfe95f
3 changed files with 24 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -13,3 +13,4 @@ libnotmuch.so*
|
|||
.*.swp
|
||||
*.elc
|
||||
releases
|
||||
debian-build
|
||||
|
|
16
debian/gbp.conf
vendored
Normal file
16
debian/gbp.conf
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Configuration file for git-buildpackage
|
||||
|
||||
[DEFAULT]
|
||||
cleaner = debian/rules prebuild && debuild clean
|
||||
|
||||
# The default branch for upstream sources
|
||||
upstream-branch = master
|
||||
|
||||
# The default branch for the debian patch (no patch in our case)
|
||||
debian-branch = master
|
||||
|
||||
# Directory for performing the build
|
||||
export-dir = ./debian-build
|
||||
|
||||
# Format for the debian tag
|
||||
debian-tag = debian-%(version)s
|
7
debian/rules
vendored
7
debian/rules
vendored
|
@ -1,4 +1,11 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
# This target invoked by git-buildpackage using a clean hook, see gbp.conf
|
||||
prebuild:
|
||||
git-dch --release --new-version=$(VERSION)
|
||||
git commit -n debian/changelog \
|
||||
-m "Automatically update debian/changelog for $(VERSION)"
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
|
|
Loading…
Reference in a new issue