guix hash: Add '--recursive'.
authorLudovic Courtès <ludo@gnu.org>
Fri, 21 Feb 2014 16:54:32 +0000 (17:54 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 21 Feb 2014 22:49:52 +0000 (23:49 +0100)
commit3140f2df423d1235c3766e3478a429ac89d882ed
treea250657c8c3682f5be9f40493d328f9c9ab83f20
parentc1d52c71aa4fc8085a9737ad1b235ca53a854649
guix hash: Add '--recursive'.

* guix/scripts/hash.scm (show-help): Add --recursive.
  (%options): Likewise.
  (guix-hash)[file-hash]: New procedure.  Honor --recursive.
  Use it.
* guix/nar.scm (write-file): Add missing field to the &nar-error
  condition raised upon unsupported file type; change its message to be
  more descriptive.
* tests/guix-hash.sh: Add tests with -r.
* doc/guix.texi (Invoking guix hash): Document --recursive.
doc/guix.texi
guix/nar.scm
guix/scripts/hash.scm
tests/guix-hash.sh