From: "Jan Beulich" Subject: Re: [v3 for 4.5 2/2] make: Make "src-tarball" target actually make a source tarball Date: Tue, 16 Sep 2014 10:55:55 +0100 Message-ID: <5418254B020000780003550E@mail.emea.novell.com> References: <1410798304-22636-1-git-send-email-george.dunlap@eu.citrix.com> <1410798304-22636-2-git-send-email-george.dunlap@eu.citrix.com> <54180CB50200007800035449@mail.emea.novell.com> <5418172802000078000354A9@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: Anthony Perard , Ian Jackson , Olaf Hering , Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 16.09.14 at 11:37, wrote: > On Tue, Sep 16, 2014 at 9:55 AM, Jan Beulich wrote: >>>>> On 16.09.14 at 10:49, wrote: >>> On Tue, Sep 16, 2014 at 9:11 AM, Jan Beulich wrote: >>>>>>> On 15.09.14 at 18:25, wrote: >>>>> --- /dev/null >>>>> +++ b/tools/misc/mktarball >>>>> @@ -0,0 +1,38 @@ >>>>> +#!/bin/bash >>>>> +# >>>>> +# mktarball: Make a release tarball (including xen, qemu, and >>> qemu-traditional) >>>>> +# >>>>> +# Takes 2 arguments, the path to the dist directory and the version >>>>> +set -ex >>>>> + >>>>> +function git_archive_into { >>>>> + mkdir "$2" >>>>> + >>>>> + git --git-dir="$1"/.git \ >>>>> + archive --format=tar HEAD | \ >>>> >>>> Is HEAD really the right thing here? >>> >>> As opposed to...? >> >> My git-speak isn't good enough to be sure about suggesting an >> alternative, but it would seem to me that the respective >> *_REVISION variables from ./Config.mk should be used here. >> Iiuc HEAD may refer to a newer commit. > > HEAD should be the current state of the tree, and that's what we want: > just as the build will take the current state of the git subtrees, we > want the mktarball script by default to take the current state of > whatever the git subtrees are. > > But the "make src-tarball[-release]" at the moment will first call > subtree-force-update on all the trees, so by the time we run the > script HEAD will be pointing to the _REVISION variables from > Config.mk. Ah, okay. As said, my git-speak is pretty limited, so never mind the comment then. Jan