publish: Add '--listen'.
authorLudovic Courtès <ludo@gnu.org>
Tue, 12 May 2015 19:20:19 +0000 (21:20 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 12 May 2015 19:22:52 +0000 (21:22 +0200)
commit9e2292ef3d9e2626381f9726c72d71057160b7c3
treefc88c4752788939402377a6076a50ddcf5b6e092
parent083b54b7c74a68958fe84b8f627123a030775d1e
publish: Add '--listen'.

* guix/scripts/publish.scm (show-help, %options): Add --listen.
  (getaddrinfo*): New procedure.
  (%default-options): Add 'address'.
  (open-server-socket): Replace 'addr' and 'port' with 'address', a
  sockaddr.
  (guix-publish): Adjust accordingly.  Augment "publishing" message with
  the actual address.
* doc/guix.texi (Invoking guix publish): Document it.
doc/guix.texi
guix/scripts/publish.scm