<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 10, 2015 at 5:05 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">On Thu, Sep 10, 2015 at 04:32:46PM +0200, Sandro Bonazzola wrote:<br>
> On Thu, Sep 10, 2015 at 3:25 PM, Christophe Fergeau <<a href="mailto:cfergeau@redhat.com">cfergeau@redhat.com</a>><br>
> wrote:<br>
><br>
> > 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<br>
> > --exclude=ovirt-wgt-${OVIRT_WGT_VERSION}.tar.gz . | \<br>
> > > + GZIP=$(GZIP_ENV) gzip -c > ovirt-wgt-${OVIRT_WGT_VERSION}.tar.gz<br>
> ><br>
> > Looks like 'git archive --prefix ovirt-wgt-${OVIRT_WGT_VERSION}<br>
> > --format=tar | gzip -c > ovirt-wgt-${OVIRT_WGT_VERSION}.tar.gz<br>
> ><br>
><br>
> If you tar xz the generated tarball and then try to run again make dist it<br>
> will fail missing the .git directory.<br>
> I'd prefer to avoid having a make dist not working on extracted sources.<br>
<br>
</div></div>On the other hand, the non-git-archive version will tar mostly<br>
everything which is in the working tree (and I tend to accumulate a lot<br>
of cruft in there).<br></blockquote><div><br></div><div>good point.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><br>
> ovirt-dist is because of the ovirt version involved in tarball name. Not<br>
> sure that out of ovirt such version make sense.<br>
<br>
</span>Actually, this really depends on what you expect to get in the<br>
tarball... .nsis script + driver binaries ? Or just the same content as<br>
what would be generated by git archive?<br></blockquote><div><br></div><div>same content as what would be generated by git archive, just working also without the .git.<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><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>