]> git.donarmstrong.com Git - lilypond.git/commitdiff
(escape_path): escape spaces in directory names
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 19 Sep 2003 12:32:30 +0000 (12:32 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 19 Sep 2003 12:32:30 +0000 (12:32 +0000)
ChangeLog
Documentation/topdocs/NEWS.texi
ly/engraver-init.ly
scripts/lilypond.py

index b4e72dd795bb90c277775463f47d8202c0e29535..c960de83175bad1d3142ba312fcae770ad0be838 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2003-09-19  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
 
+       * scripts/lilypond.py (escape_path): escape spaces in directory names
+
        * input/test/text-spanner.ly: fixes.
 
 2003-09-19  Heikki Junes  <hjunes@cc.hut.fi>
index 0ef4be1e4342ac52c8797f45c82aa1b619a6e3d3..032002b932584b9e286ac74e40fead9ca34bc934 100644 (file)
@@ -9,6 +9,9 @@
 
 @itemize
 
+@item
+Crescendos can now be drawn dotted or stippled.
+
 @item
 Quarter tones are now supported. They are entered by suffixing
 @code{ih} for a half-sharp and @code{eh} for a half-flat. Hence, the
index 60c0507acd40cc602b75ec7f4a4bdf4c25b5b258..746213a6c716c44589fbc56ec628c15e6e3833aa 100644 (file)
@@ -40,6 +40,7 @@ StaffContext=\translator {
        \consists "Instrument_name_engraver"
        \consists "Grob_pq_engraver"
        \consists "Forbid_line_break_engraver"
+       \consists "String_number_engraver"
        \consistsend "Axis_group_engraver"
 
        minimumVerticalExtent = #'(-6 . 6)
index b53a812cc566f0407d4b217e67ac8c5d0f35c478..efea9e02d11d70eb555cb400e86e97f03de60edd 100644 (file)
@@ -233,11 +233,15 @@ def set_setting (dict, key, val):
                dict[key] = [val]
 
 
+def escape_path (x):
+       return re.sub ('([ \n\t\\\\])', r'\\\1',x)
+
 def run_lilypond (files, dep_prefix):
+       def make_include_option (x):
+               return '-I %s' %   escape_path (x)
 
        opts = ''
-       opts = opts + ' ' + string.join (map (lambda x : '-I ' + x,
-                                             include_path))
+       opts = opts + ' ' + string.join (map (make_include_option, include_path))
        if pseudo_filter_p:
                opts = opts + ' --output=lelie'
        if paper_p:
@@ -254,7 +258,7 @@ def run_lilypond (files, dep_prefix):
                if dep_prefix:
                        opts = opts + ' --dep-prefix=%s' % dep_prefix
 
-       fs = string.join (files)
+       fs = string.join (map (escape_path, files))
 
        global verbose_p
        if verbose_p:
@@ -806,7 +810,9 @@ if 1:
                outbase = ly.strip_extension (outbase, i)
 
        for i in files[:] + [output_name]:
-               if string.find (i, ' ') >= 0:
+               b = os.path.basename (i)
+               print b
+               if string.find (b, ' ') >= 0:
                        ly.error (_ ("filename should not contain spaces: `%s'") %
                               i)
                        ly.exit (1)