Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 331F24196F5 for ; Tue, 6 Apr 2010 01:12:21 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5 tests=[BAYES_40=-0.001] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wKDOiF76peGb for ; Tue, 6 Apr 2010 01:12:20 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id D44264196F0 for ; Tue, 6 Apr 2010 01:12:19 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 1D59D19F3336; Tue, 6 Apr 2010 10:12:19 +0200 (CEST) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id ZO4BSIFav9Nw; Tue, 6 Apr 2010 10:12:17 +0200 (CEST) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id B7D9E19F3331; Tue, 6 Apr 2010 10:12:17 +0200 (CEST) Received: from steelpick.2x.cz (k335-30.felk.cvut.cz [147.32.86.30]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id 5E9DF15C062; Tue, 6 Apr 2010 10:12:17 +0200 (CEST) Received: from wsh by steelpick.2x.cz with local (Exim 4.71) (envelope-from ) id 1Nz3tR-00077k-02; Tue, 06 Apr 2010 10:12:17 +0200 From: Michal Sojka To: Carl Worth , notmuch@notmuchmail.org Subject: [PATCH] Derive version numbers from git In-Reply-To: <87hbnpo1yu.fsf@yoom.home.cworth.org> References: <87hbnpo1yu.fsf@yoom.home.cworth.org> Date: Tue, 06 Apr 2010 10:12:16 +0200 Message-ID: <87y6h16lun.fsf@steelpick.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2010 08:12:21 -0000 On Tue, 06 Apr 2010, Carl Worth wrote: > In trying to get notmuch to grow up a little bit, I've just added a > version number (0.1 initially) and have started doing releases. My idea > for now is to have 2-part versions for releases, and 3-part versions to > indicate intermediate states within git. Hi Carl, first of all, thank you very much for the first release. I think, that 0.1 is good number to start with, but I do not like manual numbering of intermediate states. Please, consider applying the following patch. -Michal ----- >8 ---- >8 ----- I often have several versions of notmuch compiled and it would be very helpful to be able to distinguish between them. Git has a very nice feature to make intermediate numbering automatic and unambiguous so let's use it here. For tagged versions, the version is the name of the tag, for intermediate versions, the unique ID of the commit is appended to the tag name. diff --git a/Makefile.local b/Makefile.local index 74f0f86..890f78a 100644 --- a/Makefile.local +++ b/Makefile.local @@ -7,11 +7,10 @@ # digit when we reach particularly major milestones of usability. # # Between releases, (such as when compiling notmuch from the git -# repository), we add a third digit, (0.1.1, 0.1.2, etc.), and -# increment it occasionally, (such as after a big batch of commits are -# merged. +# repository), we let git to append identification of the actual +# commit. PACKAGE=notmuch -VERSION=0.1.1 +VERSION:=$(shell git describe --dirty) RELEASE_HOST=notmuchmail.org RELEASE_DIR=/srv/notmuchmail.org/www/releases