shell arguments.
+2005-11-10 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * scripts/lilypond-book.py (main): use commands.mkarg () to quote
+ shell arguments.
+
2005-11-10 Mats Bengtsson <mabe@drongo.s3.kth.se>
* Documentation/user/examples.itely (Piano templates): Minor
2005-11-10 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * scripts/lilypond-invoke-editor.scm (run-browser): look at
+ $BROWSER.
+
* Documentation/user/point-and-click.itely: simplify p&c
instruction: don't configure firefox. Put lilypond-invoke-editor
in front of the browser.
(if (= dir UP)
(ly:stencil-translate-axis
(annotate-y-interval layout
- "topspace"
+ "pagetopspace"
(cons
(- (min 0 (* dir sep))
(ly:output-def-lookup layout 'pagetopspace))
import stat
import string
import tempfile
+import commands
# Users of python modules should include this snippet
# and customize variables below.
+ ' --formats=%s --backend eps ' % formats
if process_cmd:
- process_cmd += string.join ([(' -I %s' % p)
+ process_cmd += string.join ([(' -I %s' % commands.mkarg (p))
for p in include_path])
ly.identify (sys.stderr)
(exit 1)))))
(define (run-browser uri)
-
- ;; TODO: make educated guess which browser to run.
- (system (format #f "firefox -remote 'OpenURL(~a,new-tab)'" uri)))
+ (system
+ (if (getenv "BROWSER")
+ (format "~a ~a" (getenv "BROWSER") uri)
+ (format #f "firefox -remote 'OpenURL(~a,new-tab)'" uri))))
(define (main args)
(let ((files (parse-options args)))