guix download: Add '-o' option.
authorLudovic Courtès <ludo@gnu.org>
Fri, 28 Oct 2016 23:16:24 +0000 (01:16 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 16 Nov 2016 17:00:41 +0000 (18:00 +0100)
commit1bcc87bb685b7985512add221f10e4cb58b5f6f7
treee59490c57f7017858e86cd77c9110fa6bc7551d4
parenteb4b3e4bef412647e1c2756123b8a687996a04e1
guix download: Add '-o' option.

* guix/scripts/download.scm (download-to-file, download-to-store*): New
procedures.
(%default-options): Add 'download-proc'.
(show-help): Adjust description and document '-o'.
(%options): Add '-o'.
(guix-download): Remove 'store' variable.  Add 'fetch' and define 'path'
to as its result.
* tests/guix-download.sh: Add test.
doc/guix.texi
guix/scripts/download.scm
tests/guix-download.sh