* [Caml-list] Portable way to retrieve and unpack tar files from github @ 2017-01-09 23:36 Helmut Brandl 2017-01-09 23:54 ` David Allsopp 0 siblings, 1 reply; 2+ messages in thread From: Helmut Brandl @ 2017-01-09 23:36 UTC (permalink / raw) To: Caml List Hello list, I am looking for a portable way to retrieve tar files from github and unpacking them. I could use system calls to "wget https://www.github.com.." and "tar xzf tarfile.tar.gz", but this works only in environments where tar and wget are available i.e. possibly not on windows and maybe not on MacOS machines. Is there any library available on then opam repository to do this in a portable way. Thanks for any hint. Regards Helmut ^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [Caml-list] Portable way to retrieve and unpack tar files from github 2017-01-09 23:36 [Caml-list] Portable way to retrieve and unpack tar files from github Helmut Brandl @ 2017-01-09 23:54 ` David Allsopp 0 siblings, 0 replies; 2+ messages in thread From: David Allsopp @ 2017-01-09 23:54 UTC (permalink / raw) To: Helmut Brandl, Caml List Helmut Brandl wrote: > I am looking for a portable way to retrieve tar files from github and > unpacking them. > > I could use system calls to "wget https://www.github.com.." and "tar xzf > tarfile.tar.gz", but this works only in environments where tar and wget > are available i.e. possibly not on windows and maybe not on MacOS > machines. > > Is there any library available on then opam repository to do this in a > portable way. Thanks for any hint. While the Windows support may not (yet) be perfect, ocurl (https://opam.ocaml.org/packages/ocurl/) and tar-format (https://opam.ocaml.org/packages/tar-format/) provide a route. There are certainly other alternatives to ocurl (ocamlnet, for example - I think it may even be possible to do it without needing a C library at all). Note that unpacking a tarball is an inherently difficult portable problem in itself where Windows support is concerned. David ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-09 23:54 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2017-01-09 23:36 [Caml-list] Portable way to retrieve and unpack tar files from github Helmut Brandl 2017-01-09 23:54 ` David Allsopp
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox