unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Michal Sojka <sojkam1@fel.cvut.cz>
To: Xavier Maillard <xma@gnu.org>, notmuch@notmuchmail.org
Subject: Re: Debian package
Date: Fri, 05 Mar 2010 09:37:40 +0100	[thread overview]
Message-ID: <87eijzxiy3.fsf@steelpick.localdomain> (raw)
In-Reply-To: <m2eijzl5ds.fsf@deb.maillard.im>

On Fri, 05 Mar 2010, Xavier Maillard wrote:
> Hi,
> 
> I am using Debian GNU/linux SID and notmuch and I'd like to be
> bleading edge with notmuch. So I am trying to figure out whether
> someone is maintaining a Debian package against notmuch git
> repository or not. If the former, that's nice.

Hi,

I do not know the current plans for Debian package, but what I do for
myself is to merge together current master, debian and seveal topic
branches (based on patches sent to the mailing list) to produce a
bleeding edge package. I use the following script to build the package.

Cheers,
 Michal

#!/bin/sh

set -e

ref=$(git symbolic-ref HEAD)
branch=${ref##refs/heads/}
test "$ref" != "$branch" || die "You're on a strange branch"
export branch

die()
{
	echo >&2 "fatal: $*"
	exit 1
}

merge() {
    git branch -D integration/all
    git checkout -b integration/all
    trap "git checkout $branch
git checkout -- debian/changelog
" 0
    git merge `cat wsh-topic-branches|grep -v ^#`
}

case "$1" in
    -m|--merge)
	merge
	exit
	;;
esac

git diff-index --quiet HEAD || die "Working directory is not clean"

merge

read version sha1 < version

if [ "$sha1" != `git rev-parse HEAD` ]; then
    version=`expr $version + 1`
    sha1=`git rev-parse HEAD`
fi

git-dch --snapshot --snapshot-number=$version --debian-branch=integration/all
git-buildpackage --git-ignore-new \
		 --git-debian-branch=integration/all \
		 --git-upstream-branch=master \
    		 -i -us -uc -b	# see the example in debuild(1)

git checkout $branch
echo $version $sha1 > version
git commit -m "snapshot #$version" version

  parent reply	other threads:[~2010-03-05  8:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-05  5:11 Debian package Xavier Maillard
2010-03-05  7:18 ` martin f krafft
2010-03-05  8:37 ` Michal Sojka [this message]
2010-03-06  6:02   ` Xavier Maillard
2010-03-06  8:46     ` sojkam1
2010-03-07  6:19       ` Xavier Maillard
2010-03-08  8:31         ` Michal Sojka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eijzxiy3.fsf@steelpick.localdomain \
    --to=sojkam1@fel.cvut.cz \
    --cc=notmuch@notmuchmail.org \
    --cc=xma@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).