diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | debian/gbp.conf | 16 | ||||
-rwxr-xr-x | debian/rules | 7 |
3 files changed, 24 insertions, 0 deletions
@@ -13,3 +13,4 @@ libnotmuch.so* .*.swp *.elc releases +debian-build diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 00000000..4c8ce7ff --- /dev/null +++ b/debian/gbp.conf @@ -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 diff --git a/debian/rules b/debian/rules index 3b44e0f1..4dae6583 100755 --- a/debian/rules +++ b/debian/rules @@ -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 $@ |