]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Updating development guidelines for a pure pristine-tar build
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 3 Oct 2013 21:25:52 +0000 (18:25 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 3 Oct 2013 21:25:52 +0000 (18:25 -0300)
Makefile
development.mdwn

index 5a84ffe0d80cdf8ccbeaf6550a53e513c03160b1..0379ea03203e1d952497bd5f66f3832804949aff 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -51,7 +51,3 @@ build_man:
 
 tarball:
        git archive --prefix=keyringer-$(VERSION)/ --format=tar HEAD | bzip2 >../tarballs/keyringer-$(VERSION).tar.bz2
-
-dh:
-       #dh_make -f ../tarballs/keyringer-$(VERSION).tar.bz2 -i -p keyringer_$(VERSION)
-       git archive --prefix=keyringer-$(VERSION)/ --format=tar HEAD | bzip2 >../tarballs/keyringer_$(VERSION).orig.tar.bz2
index 1313e9a43c1e23695f3cedbca93be80b48c2450c..d312bf2be3ba9623c0c4fcb7a8c404be45155508 100644 (file)
@@ -44,29 +44,15 @@ Prepare the source code:
     $EDITOR ChangeLog
     make build_man
 
-Update debian changelog:
-
-    cd debian
-    dch -i
-    cd -
-
 Commit and tag a release:
 
     git commit -a -m "Keyringer $VERSION"
     git tag -s $VERSION -m "Keyringer $VERSION"
-    git checkout upstream
-    git merge    master
-    git checkout debian
-    git merge    upstream
 
 Create a release file:
 
     make tarball
 
-Generate a `keyringer_VERSION.orig.tar.bz2` file:
-
-    make dh
-
 Sign the release ([see backupninja development guidelines](https://labs.riseup.net/code/projects/backupninja/wiki/Release)):
 
     cd ../tarballs
@@ -77,15 +63,17 @@ Upload the release:
     scp keyringer-$VERSION.tar.bz2* server:/var/sites/keyringer/releases/
     cd -
 
-Add the release into the `pristine-tar` branch:
+Update the debian branch:
 
-    pristine-tar commit ../tarballs/keyringer_$VERSION.orig.tar.bz2 $VERSION
+    git checkout debian
+    git-import-orig --upstream-vcs-tag=$VERSION ../tarballs/keyringer-$VERSION.tar.bz2
+    dch -e # fine tune the changelog prepared by git-dch
 
 Push everything:
 
     git push --tags
 
-Build the package from the git three using the upstream branch:
+Build the package from the debian Git branch:
 
     git-buildpackage
 
@@ -94,6 +82,11 @@ Run lintian (or [add it to your pbuilder hooks](http://askubuntu.com/questions/1
     lintian --info --display-info --pedantic --color auto \
      ../build-area/keyringer_$VERSION*.changes
 
+Notes:
+
+* `git-import-orig` takes care of running `pristine-tar commit`, of merging of the tag and orig tarball into the upstream branch, and then it merges the result into the debian branch. With the above configuration, it also runs git-dch to do the bulk of the work in `debian/changelog`.
+* To build a development package, checkout the debian branch, merge master, run `git-dch --auto --snapshot` and build. 
+
 Adding a subcommand
 -------------------