From: George Dunlap <george.dunlap@eu.citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@citrix.com>,
Jan Beulich <jbeulich@suse.com>,
xen-devel@lists.xen.org
Subject: Re: [PATCH 2/2] make: Make "src-tarball" target actually make a source tarball
Date: Thu, 3 Jul 2014 13:48:34 +0100 [thread overview]
Message-ID: <53B55122.9050002@eu.citrix.com> (raw)
In-Reply-To: <1404376154.11440.9.camel@kazak.uk.xensource.com>
On 07/03/2014 09:29 AM, Ian Campbell wrote:
> On Wed, 2014-07-02 at 17:15 +0100, George Dunlap wrote:
>> +tdir=$(mktemp -d $xen_root/dist/xen.XXXXXXXX) || exit 1
> Doesn't set -e make all (or most) of these "|| exit 1" bits unnecessary?
Er, yes. Sorry.
>
>> +
>> +mkdir $tdir/xen-$desc || exit 1
>> +
>> +git archive --format=tar HEAD |tar Cxf $tdir/xen-$desc - || exit 1
>> +
>> +mkdir $tdir/xen-$desc/tools/qemu-xen || exit 1
>> +mkdir $tdir/xen-$desc/tools/qemu-xen-traditional || exit 1
>> +
>> +pushd $xen_root/tools/qemu-xen-traditional-dir-remote || exit 1
> FWIW I think you could avoid much of this pushd/popd stuff with tar -C
> and git --git-dir= (perhaps --work-dir, not sure for git archive).
The --git-dir think seemed to work differently enough to hg's "-C"
option that I didn't really trust it. If you think it's better I can
try to work it out.
-George
next prev parent reply other threads:[~2014-07-03 12:48 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-02 16:15 [PATCH 1/2] make: Check tools/qemu-xen[-traditional] for qemu before downloading George Dunlap
2014-07-02 16:15 ` [PATCH 2/2] make: Make "src-tarball" target actually make a source tarball George Dunlap
2014-07-03 8:29 ` Ian Campbell
2014-07-03 12:48 ` George Dunlap [this message]
2014-07-03 13:46 ` Ian Campbell
2014-07-08 9:50 ` Ian Jackson
2014-07-08 11:00 ` George Dunlap
2014-07-03 11:22 ` Anthony PERARD
2014-07-03 11:25 ` George Dunlap
2014-07-03 8:25 ` [PATCH 1/2] make: Check tools/qemu-xen[-traditional] for qemu before downloading Ian Campbell
2014-07-03 9:04 ` George Dunlap
2014-07-03 9:10 ` Ian Campbell
2014-07-08 9:57 ` Ian Jackson
2014-07-08 10:57 ` George Dunlap
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53B55122.9050002@eu.citrix.com \
--to=george.dunlap@eu.citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=ian.jackson@citrix.com \
--cc=jbeulich@suse.com \
--cc=xen-devel@lists.xen.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.