[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz metacode/mputils.py Documentation/misc/uml/...
From: |
Asko Soukka |
Subject: |
[Gzz-commits] gzz metacode/mputils.py Documentation/misc/uml/... |
Date: |
Mon, 10 Feb 2003 10:59:07 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Asko Soukka <address@hidden> 03/02/10 10:59:07
Modified files:
metacode : mputils.py
Documentation/misc/uml: Makefile
Log message:
fix
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/metacode/mputils.py.diff?tr1=1.15&tr2=1.16&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/Documentation/misc/uml/Makefile.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
Patches:
Index: gzz/Documentation/misc/uml/Makefile
diff -u gzz/Documentation/misc/uml/Makefile:1.6
gzz/Documentation/misc/uml/Makefile:1.7
--- gzz/Documentation/misc/uml/Makefile:1.6 Mon Jan 27 09:45:42 2003
+++ gzz/Documentation/misc/uml/Makefile Mon Feb 10 10:59:07 2003
@@ -9,6 +9,6 @@
rm -f *.gen.html
%.html: %.rst
- $(MAKE) -C ../../../ umldoc INPUT="Documentation/misc/uml/$*.rst"
+ $(MAKE) -C ../../../ rst RST="Documentation/misc/uml/$*.rst"
Index: gzz/metacode/mputils.py
diff -u gzz/metacode/mputils.py:1.15 gzz/metacode/mputils.py:1.16
--- gzz/metacode/mputils.py:1.15 Mon Feb 10 09:32:44 2003
+++ gzz/metacode/mputils.py Mon Feb 10 10:59:07 2003
@@ -99,8 +99,11 @@
# return transition
- from_path = os.path.normpath(os.path.abspath(from_path))
- to_path = os.path.normpath(os.path.abspath(to_path))
+ print "before:", from_path, "->", to_path
+ if from_path.startswith("../") or to_path.startswith("../"):
+ from_path = os.path.normpath(os.path.abspath(from_path))
+ to_path = os.path.normpath(os.path.abspath(to_path))
+ print "after:", from_path, "->", to_path
depth = from_path.count("/")
from_parts = from_path.split("/")
to_parts = to_path.split("/")
@@ -114,6 +117,8 @@
break
result = "".join(["../" for i in range(depth-parts)]) \
+"".join([to_parts[i+parts]+"/" for i in
range(len(to_parts)-parts)])
+
+ print "transition:", result[0:len(result)-1]
return (result[0:len(result)-1])
def mp_directive(name, arguments, options, content, lineno,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gzz-commits] gzz metacode/mputils.py Documentation/misc/uml/...,
Asko Soukka <=