]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.1.7
authorfred <fred>
Tue, 26 Mar 2002 21:29:32 +0000 (21:29 +0000)
committerfred <fred>
Tue, 26 Mar 2002 21:29:32 +0000 (21:29 +0000)
scripts/mudela-book.py

index f08c6043bd9cc0677f69684155e2db5deba3887e..cf176a6c1b45dd9f3da89174e9a204913409441c 100644 (file)
@@ -274,7 +274,9 @@ class Tex_output:
                 compile('dvips -E -o %s %s' %(g[1]+'.eps', g[1]+'.dvi'), outdir,
                         g[1]+'.dvi', g[1]+'.eps')
     def write_outfile(self):
-        file = open(self.output_fn+'.latex', 'w')
+        outfn = self.output_fn+'.latex'
+       sys.stderr.write ('Writing output to `%s\'\n'% outfn)
+        file = open(outfn, 'w')
         file.write('% Created by mudela-book\n')
         for line in self.__lines:
             if type(line)==type([]):
@@ -456,7 +458,8 @@ Options:\n
 
 def write_deps (fn, out,  deps):
        out_fn = outdir + '/' + fn
-       print '`writing `%s\'\n\'' % out_fn
+       out_fn = re.sub ('//', '/', out_fn)
+       print 'writing `%s\'\n' % out_fn
        
        f = open (out_fn, 'w')
        f.write ('%s: %s\n'% (outdir + '/' + out + '.dvi',
@@ -526,7 +529,7 @@ def main():
         my_depname = my_outname + '.dep'        
         inp = Main_tex_input (input_filename, my_outname)
         inp.do_it ()
-        print "LaTeX output to %s%s.latex" %(outdir, my_outname)
+
 
         if do_deps:
             write_deps (my_depname, my_outname, inp.deps)