From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrUUd-00070g-VB for qemu-devel@nongnu.org; Wed, 18 Jul 2012 09:40:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrUUZ-0005tM-Ju for qemu-devel@nongnu.org; Wed, 18 Jul 2012 09:40:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrUUZ-0005t8-Bu for qemu-devel@nongnu.org; Wed, 18 Jul 2012 09:40:39 -0400 Message-ID: <5006BCB4.1010502@redhat.com> Date: Wed, 18 Jul 2012 15:40:04 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: <1342550012-5697-1-git-send-email-aliguori@us.ibm.com> <20120717191252.GC2880@illuin> In-Reply-To: <20120717191252.GC2880@illuin> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] build: add make dist target (v2) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Roth Cc: Anthony Liguori , qemu-devel@nongnu.org On 07/17/12 21:12, Michael Roth wrote: > On Tue, Jul 17, 2012 at 01:33:32PM -0500, Anthony Liguori wrote: >> Let's stop screwing up releases by having a script do the work that Anthony's >> fat fingers can't seem to get right. >> >> Cc: Michael Roth >> Signed-off-by: Anthony Liguori > > Breaks if there's no tag corresponding with the contents of VERSION, > but that might be considered a feature (an alternative might be to > assume it's a development release, use current HEAD for master, and append the > short git hash to the version). Works well as far as I can tell though, > and I made a special point to confirm it did indeed output a bz2 :) Or just use 'git describe --long' to figure what the version is. This way you can easily build a tarball for any git commit, and a release tarball is just 'git checkout v$version; make dist'. cheers, Gerd