aboutsummaryrefslogtreecommitdiff
#!@abs_top_builddir@/guile \
--no-auto-compile -e main -s
!#
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2018 Mathieu Lirzin <mthl@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

;; IMPORTANT: We must avoid loading any modules from Guix here,
;; because we need to adjust the guile load paths first.
;; It's okay to import modules from core Guile though.

(define-syntax-rule (push! elt v) (set! v (cons elt v)))

(define (augment-load-paths!)
  ;; Add installed modules to load-path.
  (push! "@guilemoduledir@" %load-path)
  (push! "@guileobjectdir@" %load-compiled-path))

(define* (main #:optional (args (command-line)))
  (unless (getenv "GUIX_UNINSTALLED")
    (augment-load-paths!))

  (let ((guix-main (module-ref (resolve-interface '(guix ui))
                               'guix-main)))
    (bindtextdomain "guix" "@localedir@")
    (bindtextdomain "guix-packages" "@localedir@")
    ;; XXX: It would be more convenient to change it to:
    ;;   (exit (apply guix-main (command-line)))
    ;; but since the 'guix' command is not updated by 'guix pull', we cannot
    ;; really do it now.
    (apply guix-main args)))

;;; Local Variables:
;;; mode: scheme
;;; End:
8bf04b45cc60b8268238ca80258b5be634'>news: Add 'de' translation....* etc/news.scm: Add 'de' translation. Florian Pelz 2020-02-07news: Add entry for "guix pull" ssh authenticated repositories support....* etc/news.scm: Add entry for "guix pull" ssh authenticated repositories support. Mathieu Othacehe 2020-01-24news: Add ‘nl’ translation....* * etc/news.scm: Add ‘nl’ translation. Tobias Geerinckx-Rice 2020-01-24news: Add 'de' translation....* etc/news.scm: Add 'de' translation. Florian Pelz 2020-01-23news: Add entry for Guile 3.0....* etc/news.scm: Add entry for Guile 3.0. Ludovic Courtès 2019-12-12news: Add 'de' translation....* etc/news.scm: Add 'de' translation. Florian Pelz 2019-12-12news: Add entry for "guix challenge --diff"....* etc/news.scm: Add entry for "guix challenge --diff". Ludovic Courtès 2019-11-16news: Fix another 'de' translation typo....* etc/news.scm: Fix typo. Florian Pelz 2019-11-16news: Fix 'de' translation typo....* etc/news.scm: Fix typo. Florian Pelz 2019-11-15news: Add entry for "guix time-machine"....* etc/news.scm: Add entry for 'guix time-machine'. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Konrad Hinsen 2019-11-09news: Add Spanish translation....* etc/news.scm: Add spanish translation. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Miguel Ángel Arruga Vivas 2019-11-08news: Add 'de' translation....* etc/news.scm: Add new 'de' translation. Florian Pelz 2019-11-07news: Add entry for package transformation options in "guix graph"....* etc/news.scm: Add entry for "guix graph --with-input". Ludovic Courtès 2019-11-02news: Add 'de' translation....* etc/news.scm: Add 'de' translation. Florian Pelz 2019-10-28news: Fix typo....Reported by Eric Bavier <ericbavier@centurylink.net>. * etc/news.scm: Fix typo in English title of latest news item. Tobias Geerinckx-Rice 2019-10-27news: Add entry for /etc/guix/channels.scm....* etc/news.scm: Add entry to /etc/guix/channels.scm. Ludovic Courtès 2019-10-18news: Add CVE ID....* etc/news.scm: Add CVE ID for insecure permissions entry. Ludovic Courtès 2019-10-17news: Fix 'de' translation....* etc/news.scm: Add new 'de' translation. Florian Pelz 2019-10-16news: Fix ‘nl’ translation typo....* etc/news.scm: Fix typo. Tobias Geerinckx-Rice 2019-10-16news: Add 'de' translation....* etc/news.scm: Add new 'de' translation. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Florian Pelz 2019-10-16news: Add 'fr' translation....* etc/news.scm: Add 'fr' translation. Julien Lepiller 2019-10-16news: Add 'nl' translation....* etc/news.scm: Add 'nl' translation. Tobias Geerinckx-Rice 2019-10-16news: Add entry for security issue with /var/guix/profiles/per-user....* etc/news.scm: Add entry for security issue in multi-user setups. Ludovic Courtès 2019-09-28nls: Add ‘nl’ translation of news entries....* etc/news.scm: Add ‘nl’ translations. Tobias Geerinckx-Rice 2019-09-27nls: Update 'de' translation of news entries....* etc/news.scm: Improve 'de' translation for news entries. Florian Pelz 2019-09-27nls: Update 'de' translation of news entries....* etc/news.scm: Add 'de' translation for news entry titles. Florian Pelz 2019-09-26nls: Update 'fr' translation of news entries....* etc/news.scm: Add more 'fr' translations. Julien Lepiller 2019-09-24nls: Update 'de' translation of news entries....* etc/news.scm: Add more 'de' translations. Florian Pelz 2019-09-24news: Add entry for the glibc upgrade....* etc/news.scm: Add entry for 5f3f70391809f8791c55c05bd1646bc58508fa2c. Ludovic Courtès 2019-09-24news: Add entry for the reduced binary seed bootstrap....* etc/news.scm: Add entry for cdd3bcf03883d129581a79e6d6611b2afd3b277b. Ludovic Courtès 2019-09-23etc: Add channel news file....* etc/news.scm: New file. * Makefile.am (EXTRA_DIST): Add it. Ludovic Courtès