gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/metacode mputils.py umlrst.py


From: Benja Fallenstein
Subject: [Gzz-commits] gzz/metacode mputils.py umlrst.py
Date: Sun, 09 Feb 2003 04:06:28 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Benja Fallenstein <address@hidden>      03/02/09 04:06:28

Modified files:
        metacode       : mputils.py umlrst.py 

Log message:
        fix

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/metacode/mputils.py.diff?tr1=1.9&tr2=1.10&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/metacode/umlrst.py.diff?tr1=1.27&tr2=1.28&r1=text&r2=text

Patches:
Index: gzz/metacode/mputils.py
diff -u gzz/metacode/mputils.py:1.9 gzz/metacode/mputils.py:1.10
--- gzz/metacode/mputils.py:1.9 Sat Feb  8 19:39:42 2003
+++ gzz/metacode/mputils.py     Sun Feb  9 04:06:27 2003
@@ -134,8 +134,10 @@
         
     syscmd = "/usr/bin/mpost --file-line-error-style "+\
              "--interaction nonstopmode "+\
-             "%s" % prefix+".3 >/dev/null;"+\
-             'cp %s.1 %s.eps' % (prefix, prefix)
+             "%s" % prefix+".3 >/dev/null"
+
+##             "%s" % prefix+".3 >/dev/null;"+\
+##             'cp %s.1 %s.eps' % (prefix, prefix)
 
     if settings.has_key('tmpdir'):
         os.system("cd "+path+";"+syscmd)
Index: gzz/metacode/umlrst.py
diff -u gzz/metacode/umlrst.py:1.27 gzz/metacode/umlrst.py:1.28
--- gzz/metacode/umlrst.py:1.27 Sat Feb  8 19:39:42 2003
+++ gzz/metacode/umlrst.py      Sun Feb  9 04:06:27 2003
@@ -74,17 +74,20 @@
 
         #writes uml and mp sourcefiles and converts them into png and html
 
-        uml = open(mputils._slashify(settings['tmpdir'])\
-                   +attributes['name']+".gen.uml", "w")
+        dir = mputils._slashify(settings['tmpdir'])
+        name = attributes['name']
+
+        uml = open(dir+name+".gen.uml", "w")
         uml.write(files[0])
         uml.close()
     
-        mp = open(mputils._slashify(settings['tmpdir'])\
-                  +attributes['name']+".gen.mp", "w")
+        mp = open(dir+name+".gen.mp", "w")
         mp.write(files[1])
         mp.close()
 
-        create_diagram(attributes['name']+'.gen')
+        create_diagram(name+'.gen')
+        open(dir+name+'.gen.eps', 'bw').write(
+            open(dir+name+'.gen.1', 'br').read())
 
     add_refer_context(attributes['name'], 1)
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]