[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 2/2] make: Make "src-tarball" target actually make a source tarball



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.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.