2004-11-06 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * scm/lily.scm (ly:system): add > /dev/null 2>&1
+
* lily/recording-group-engraver.cc (derived_mark): mark
now_events_. (backportme)
BUG HUNTERS/SUGGESTIONS
Fernando Pablo Lopez-Lezcano
-
+Jack O'Quin
Release 2.4
***********
rm -rf $(outdir)/./usr
ar p $< data.tar.gz | \
tar -C $(outdir) -zvxf - '*.pfa'
- touch $(addprefix $(outdir)/, $(addsuffix .bla,$(SAUTER_FONTS)))
cp `find $(outdir)/usr/ -name '*.pfa'` $(outdir)/
get-rpm-pfa: $(outdir)/$(redhat-package)
cd $(outdir) ; rm -rf usr/ # (root alert!)
cd $(outdir) ; rpm2cpio $(redhat-package) | cpio -uid '*.pfa'
- touch $(addprefix $(outdir)/, $(addsuffix .bla,$(SAUTER_FONTS)))
cp `find $(outdir)/usr/ -name '*.pfa'` $(outdir)/
# change this dependency
(ly:get-option 'resolution))
(string-append (basename name ".tex") ".ps"))))
+
+;;
+;; ugh - double check this. We are leaking
+;; untrusted (user-settable) info to a command-line
+;;
(define-public (convert-to-ps book name)
(let* ((paper (ly:paper-book-paper book))
(preview? (string-contains name ".preview"))
" -u+ec-mftrace.map -u+lilypond.map -Ppdf "
base
- (if (ly:get-option 'verbose)
- " "
- " 2>&1 1>& /dev/null "))))
+ )))
- (if (ly:get-option 'verbose)
- (begin
- (newline (current-error-port))
- (format (current-error-port) (_ "Invoking ~S") cmd)
- (newline (current-error-port)))
+ (if (not (ly:get-option 'verbose))
(begin
(format (current-error-port) (_ "Converting to `~a.ps'...") base)
(newline (current-error-port))))
(base (basename name ".tex"))
(cmd (string-append
"latex \\\\nonstopmode \\\\input " name
- (if (ly:get-option 'verbose)
- " "
- " 2>&1 1>& /dev/null "))))
+ )))
(setenv "extra_mem_top" (number->string (max curr-extra-mem 1024000)))
- (if (ly:get-option 'verbose)
- (begin
- (newline (current-error-port))
- (format (current-error-port) (_ "Invoking ~S") cmd)
- (newline (current-error-port)))
+ (if (not (ly:get-option 'verbose))
(begin
(format (current-error-port) (_ "Converting to `~a.dvi'...") base)
(newline (current-error-port))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define-public (ly:system command)
- (let* ((status 0))
+ (let*
+ ((status 0)
+
+ (silenced
+ (string-append command (if (ly:get-option 'verbose)
+ ""
+ " > /dev/null 2>&1 "))))
+
(if (ly:get-option 'verbose)
(format (current-error-port) (_ "Invoking `~a'...\n") command))
- (set! status (system command))
+
+ (set! status (system silenced))
(if (> status 0)
(format (current-error-port) (_ "Error invoking `~a'. Return value ~a")
- command status))))
+ silenced status))))
+;;
+;; ugh - double check this. We are leaking
+;; untrusted (user-settable) info to a command-line
+;;
(define-public (postscript->pdf papersizename name)
(let* ((cmd (string-append "ps2pdf -sPAPERSIZE=" papersizename " " name))
(output-name
(format (current-error-port) (_ "Converting to `~a'...") output-name)
(ly:system cmd)))
+
(define-public (postscript->png resolution name)
(let
((cmd (string-append