From: David Allsopp <dra-news@metastack.com>
To: Helmut Brandl <helmut.brandl@gmx.net>, Caml List <caml-list@inria.fr>
Subject: RE: [Caml-list] Portable way to retrieve and unpack tar files from github
Date: Mon, 9 Jan 2017 23:54:22 +0000 [thread overview]
Message-ID: <E51C5B015DBD1348A1D85763337FB6D9013572052D@Remus.metastack.local> (raw)
In-Reply-To: <e78ef187-0edd-db24-2adc-e13b551ff6fb@gmx.net>
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
prev parent reply other threads:[~2017-01-09 23:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-09 23:36 Helmut Brandl
2017-01-09 23:54 ` David Allsopp [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E51C5B015DBD1348A1D85763337FB6D9013572052D@Remus.metastack.local \
--to=dra-news@metastack.com \
--cc=caml-list@inria.fr \
--cc=helmut.brandl@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox