From: Ian Campbell Subject: Re: [PATCH 2/2] make: Make "src-tarball" target actually make a source tarball Date: Thu, 3 Jul 2014 09:29:14 +0100 Message-ID: <1404376154.11440.9.camel@kazak.uk.xensource.com> References: <1404317712-4191-1-git-send-email-george.dunlap@eu.citrix.com> <1404317712-4191-2-git-send-email-george.dunlap@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1404317712-4191-2-git-send-email-george.dunlap@eu.citrix.com> 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: Ian Jackson , Jan Beulich , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org 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? > + > +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). Ian.