;;;;
;;;; source file of the GNU LilyPond music typesetter
;;;;
-;;;; (c) 1998--2005 Jan Nieuwenhuizen <janneke@gnu.org>
+;;;; (c) 1998--2006 Jan Nieuwenhuizen <janneke@gnu.org>
;;;; Han-Wen Nienhuys <hanwen@cs.uu.nl>
(for-each (lambda (x)
(ly:add-option (car x) (cadr x) (caddr x)))
- '((point-and-click #t "use point & click")
+ `((point-and-click #t "use point & click")
(paper-size "a4" "the default paper size")
(midi-debug #f "generate human readable MIDI")
(internal-type-checking #f "check every property assignment for types")
(gui #f "running from gui; redirect stderr to log file")
(delete-intermediate-files #f
"delete unusable PostScript files")
- (verbose #f "value for the --verbose flag")
+ (safe #f "Run safely")
+ (verbose ,(ly:command-line-verbose?) "value for the --verbose flag")
(ttf-verbosity 0
"how much verbosity for TTF font embedding?")
(debug-gc #f
- "dump GC protection info"))))
+ "dump GC protection info"))
+ ))
;; FIXME: stray statement
(define-scheme-options)
-;; cpp hack to get useful error message
-(define ifdef "First run this through cpp.")
-(define ifndef "First run this through cpp.")
;; gettext wrapper for guile < 1.7.2
(if (defined? 'gettext)
(,ly:pitch? . "pitch")
(,ly:translator? . "translator")
(,ly:font-metric? . "font metric")
+ (,ly:simple-closure? . "simple closure")
(,markup-list? . "list of markups")
(,markup? . "markup")
(,ly:music-list? . "list of music")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define-public (lilypond-main files)
"Entry point for LilyPond."
-
+
(define (no-files-handler)
(ly:usage)
(exit 2))
(exit 0)))))
(define-public (lilypond-all files)
+
(let* ((failed '())
(handler (lambda (key failed-file)
(set! failed (append (list failed-file) failed)))))
+
(for-each
(lambda (x)
(lilypond-file handler x)
(ly:message (_ "Redirecting output to ~a...") log-name))
(ly:stderr-redirect log-name "w")
(ly:message "# -*-compilation-*-")
+
(let ((failed (lilypond-all files)))
(if (pair? failed)
(begin