+2004-10-30 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * make/lilypond-vars.make: add scripts/out/ to PATH, to find ps2png.
+
+ * scm/lily.scm (ly:system): new function. Catches uninstalled
+ ps2png.
+
2004-10-29 Han-Wen Nienhuys <hanwen@xs4all.nl>
* Documentation/user/notation.itely: remove
+++ /dev/null
-
-\version "2.3.22"
-\header {
-
-texidoc = "Beams and ties may be entered in postfix notation, separating the
- notes and the brackets with a dash."
-
-}
- \layout { raggedright= ##t }
-
-
-\score
-{
- \relative c''
- {
- c8[~ c]
- }
-}
## settings to run LilyPond
-export PATH:=$(builddir)/lily/$(outconfbase):$(builddir)/buildscripts/$(outconfbase):$(PATH)
+export PATH:=$(builddir)/lily/$(outconfbase):$(builddir)/buildscripts/$(outconfbase):$(builddir)/scripts/$(outconfbase):$(PATH):
# LilyPond is often run from within $(outdir), making a relative
# PREFIX incorrect.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+(define-public (ly:system command)
+ (let*
+ ((status 0))
+
+ (if (ly:get-option 'verbose)
+ (display (format (_ "Invoking `~a'...\n") command) (current-error-port)))
+
+ (set! status (system command))
+
+
+ (if (> status 0)
+ (display (format (_ "Error invoking `~a'. Return value ~a")
+ command status)))
+ ))
+
(define-public (postscript->pdf papersizename name)
(let* ((cmd (string-append "ps2pdf -sPAPERSIZE=" papersizename " " name))
(output-name
(newline (current-error-port))
(display (format (_ "Converting to `~a'...") output-name)
(current-error-port))
- (newline (current-error-port))
-
- (if (ly:get-option 'verbose)
- (display (format (_"Invoking `~a'...") cmd) (current-error-port)))
- (system cmd)))
+ (ly:system cmd)))
(define-public (postscript->png resolution name)
(let
"--verbose "
" ")
name)))
- (if (ly:get-option 'verbose)
- (begin
- (display (format (_ "Invoking `~a'...") cmd) (current-error-port))
- (newline (current-error-port))))
- (system cmd)))
+ (ly:system cmd)))
(define-public (lilypond-main files)
"Entry point for LilyPond."