From 073c34d72f94adf6c4c307239b1de0d14bdb60f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 1 Nov 2012 00:50:01 +0100 Subject: Add (guix ui). * guix/ui.scm: New file. * Makefile.am (MODULES): Add it. * po/POTFILES.in: Add it. * guix-build.in: Use it. (_, N_, leave): Remove. (guix-build): Use `with-error-handling' instead of the `guard' form. * guix-download.in: Use it. (_, N_, leave): Remove. --- guix-download.in | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'guix-download.in') diff --git a/guix-download.in b/guix-download.in index 3892b2efe3..b574c962b4 100644 --- a/guix-download.in +++ b/guix-download.in @@ -32,6 +32,7 @@ exec ${GUILE-@GUILE@} -L "@guilemoduledir@" -l "$0" \ (define-module (guix-download) #:use-module (web uri) #:use-module (web client) + #:use-module (guix ui) #:use-module (guix store) #:use-module (guix utils) #:use-module (guix ftp-client) @@ -44,9 +45,6 @@ exec ${GUILE-@GUILE@} -L "@guilemoduledir@" -l "$0" \ #:use-module (rnrs io ports) #:export (guix-download)) -(define _ (cut gettext <> "guix")) -(define N_ (cut ngettext <> <> <> "guix")) - (define (call-with-temporary-output-file proc) (let* ((template (string-copy "guix-download.XXXXXX")) (out (mkstemp! template))) @@ -90,12 +88,6 @@ exec ${GUILE-@GUILE@} -L "@guilemoduledir@" -l "$0" \ ;; Alist of default option values. `((format . ,bytevector->nix-base32-string))) -(define-syntax-rule (leave fmt args ...) - "Format FMT and ARGS to the error port and exit." - (begin - (format (current-error-port) fmt args ...) - (exit 1))) - (define (show-version) (display "guix-download (@PACKAGE_NAME@) @PACKAGE_VERSION@\n")) -- cgit v1.2.3