How to convert git clone into tarball? They are different

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to convert git clone into tarball? They are different

John Harvey
Hello all,

If I want to look at CGAL 4.7 source code, I can do the following:
2) cd cgal
3) git checkout releases/CGAL-4.7

When I do this, I see over 100 subdirectories.

Next, I take a look at the CGAL-4.7 release tarball found here:

I see that the directory structure is very different.  The manual (http://doc.cgal.org/latest/Manual/installation.html) does seem to indicate that this is expected.  However, I could not find where it explains how the tarball is made from the original git source code.

Is that something that somebody could explain to me?

Best regards,
  -John
Reply | Threaded
Open this post in threaded view
|

Re: How to convert git clone into tarball? They are different

Adam Getchell
Hi John,

This doesn’t directly answer your question, but for the purposes of viewing source code I just fork the main CGAL repository on GitHub.

Then it’s very easy to build a local version by cloning the forked repo.

From there, I find ag indispensable in finding things locally.

If you want to sync up your fork with the main repo, you can just do (in your local repository obtained from the fork):

# git fetch upstream
# git checkout master
# git merge upstream/master
# git push

Also, I can often just browse the source code directly from GitHub (searching does not work on forked repos, unfortunately).

Hope that helps!


On Feb 1, 2016, at 7:01 AM, John Harvey <[hidden email]> wrote:

Hello all,

If I want to look at CGAL 4.7 source code, I can do the following:
2) cd cgal
3) git checkout releases/CGAL-4.7

When I do this, I see over 100 subdirectories.

Next, I take a look at the CGAL-4.7 release tarball found here:

I see that the directory structure is very different.  The manual (http://doc.cgal.org/latest/Manual/installation.html) does seem to indicate that this is expected.  However, I could not find where it explains how the tarball is made from the original git source code.

Is that something that somebody could explain to me?

Best regards,
  -John

Reply | Threaded
Open this post in threaded view
|

Re: How to convert git clone into tarball? They are different

Sebastien Loriot (GeometryFactory)
In reply to this post by John Harvey
On 02/01/2016 04:01 PM, John Harvey wrote:

> Hello all,
>
> If I want to look at CGAL 4.7 source code, I can do the following:
> 1) git clone https://github.com/CGAL/cgal.git
> 2) cd cgal
> 3) git checkout releases/CGAL-4.7
>
> When I do this, I see over 100 subdirectories.
>
> Next, I take a look at the CGAL-4.7 release tarball found here:
> https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-4.7/CGAL-4.7.tar.xz
>
> I see that the directory structure is very different.  The manual
> (http://doc.cgal.org/latest/Manual/installation.html) does seem to
> indicate that this is expected.  However, I could not find where it
> explains how the tarball is made from the original git source code.
>
> Is that something that somebody could explain to me?
>
> Best regards,
>    -John

About the layout see:
https://github.com/CGAL/cgal#cgal-git-repository-layout


To create a flat release from a branch you can use the bash script
in Scripts/developer_scripts/create_internal_release:

create_internal_release -r CGAL-FOOBAR -d
/PATH/WHERE/THE/RELEASE/WILL/BE -a /PATH/TO/cgal.git -l
/tmp/release_creation.lock

/PATH/WHERE/THE/RELEASE/WILL/BE will contain a directory CGAL-FOOBAR
with the flat version of the branch.

Note that a branch could be used instead:
https://github.com/CGAL/cgal/blob/master/INSTALL.md

Sebastien.


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss