<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 10, 2015 at 3:25 PM, Christophe Fergeau <span dir="ltr"><<a href="mailto:cfergeau@redhat.com" target="_blank">cfergeau@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Sep 10, 2015 at 03:14:15PM +0300, Yedidyah Bar David wrote:<br>
> From: Sandro Bonazzola <<a href="mailto:sbonazzo@redhat.com">sbonazzo@redhat.com</a>><br>
><br>
> Allow to generate the tar.gz by just calling<br>
> "make ovirt-dist"<br>
><br>
> Change-Id: I0d651065697d962d4e351ffc1b7274c8eb37cb22<br>
> Signed-off-by: Sandro Bonazzola <<a href="mailto:sbonazzo@redhat.com">sbonazzo@redhat.com</a>><br>
> Signed-off-by: Yedidyah Bar David <<a href="mailto:didi@redhat.com">didi@redhat.com</a>><br>
> ---<br>
>  Makefile | 5 +++++<br>
>  1 file changed, 5 insertions(+)<br>
>  create mode 100644 Makefile<br>
><br>
> diff --git a/Makefile b/Makefile<br>
> new file mode 100644<br>
> index 0000000..0a7afda<br>
> --- /dev/null<br>
> +++ b/Makefile<br>
> @@ -0,0 +1,5 @@<br>
> +OVIRT_WGT_VERSION="3.6.0"<br>
> +<br>
> +ovirt-dist:<br>
> +     tar -c --transform 's,^\.,ovirt-wgt,' --exclude=.git --exclude=ovirt-wgt-${OVIRT_WGT_VERSION}.tar.gz . | \<br>
> +     GZIP=$(GZIP_ENV) gzip -c > ovirt-wgt-${OVIRT_WGT_VERSION}.tar.gz<br>
<br>
</span>Looks like 'git archive --prefix ovirt-wgt-${OVIRT_WGT_VERSION} --format=tar | gzip -c > ovirt-wgt-${OVIRT_WGT_VERSION}.tar.gz<br></blockquote><div><br></div><div>If you tar xz the generated tarball and then try to run again make dist it will fail missing the .git directory.</div><div>I'd prefer to avoid having a make dist not working on extracted sources.</div><div>ovirt-dist is because of the ovirt version involved in tarball name. Not sure that out of ovirt such version make sense.</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I don't think there is anything oVirt specific in the generated tarball<br>
though, this could be a generic 'make dist' upstream target.<br>
<span class="HOEnZb"><font color="#888888"><br>
Christophe<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Sandro Bonazzola<br>Better technology. Faster innovation. Powered by community collaboration.<br>See how it works at <a href="http://redhat.com" target="_blank">redhat.com</a><br></div></div></div></div>
</div></div>