CVSROOT: /cvsroot/lilypond
Module name: mftrace
Branch:
Changes by: Han-Wen Nienhuys <[EMAIL PROTECTED]> 05/08/14 22:07:39
Modified files:
. : mftrace.py
Log message:
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/mftrace/mftrace.py.diff?tr1=1.58&tr2=1.59&r1=text&r2=text
Patches:
Index: mftrace/mftrace.py
diff -u mftrace/mftrace.py:1.58 mftrace/mftrace.py:1.59
--- mftrace/mftrace.py:1.58 Sun Aug 14 21:54:12 2005
+++ mftrace/mftrace.py Sun Aug 14 22:07:39 2005
@@ -97,6 +97,11 @@
def _ (s):
return s
+def shell_escape_filename (str):
+ str = re.sub ('[\'" ]', '\\\1', str)
+ return str
+
+
def identify (port):
port.write ('%s %s\n' % (program_name, program_version))
@@ -894,7 +899,7 @@
outname = fontname + ext
progress (_ ("Assembling raw font to `%s'... ") % outname)
- system ('t1asm %s mftrace.t1asm %s' % (asm_opt, re.escape (outname)))
+ system ('t1asm %s mftrace.t1asm %s' % (asm_opt, shell_escape_filename
(outname)))
progress ('\n')
return outname
@@ -938,7 +943,7 @@
''' % vars())
system ("%s -script to-ttf.pe %s %s" % (ff_command,
- re.escape (raw_name), re.escape (tfmfile)))
+ shell_escape_filename (raw_name),
shell_escape_filename (tfmfile)))
else:
t1_path = ''
_______________________________________________
Lilypond-cvs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-cvs