[Synopsis-changes] Synopsis/Synopsis/doc/Manual Makefile,1.40,1.41 synopsis.py,1.3,1.4
Stefan Seefeld stefan at synopsis.fresco.orgMon Nov 24 22:10:42 UTC 2003
- Previous message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/dist/command build_doc.py,1.5,1.6
- Next message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Formatters Dump.py,1.5,1.6
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvs/synopsis/Synopsis/doc/Manual
In directory frida:/tmp/cvs-serv31211/doc/Manual
Modified Files:
Makefile synopsis.py
Log Message:
modifications to get this to work from within the build tree
Index: Makefile
===================================================================
RCS file: /cvs/synopsis/Synopsis/doc/Manual/Makefile,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -p -d -r1.40 -r1.41
--- Makefile 22 Nov 2003 21:55:24 -0000 1.40
+++ Makefile 24 Nov 2003 22:10:40 -0000 1.41
@@ -1,4 +1,5 @@
-synopsis := python synopsis.py
+script := synopsis.py
+synopsis := python $(script)
topdir := ../..
Index: synopsis.py
===================================================================
RCS file: /cvs/synopsis/Synopsis/doc/Manual/synopsis.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -d -r1.3 -r1.4
--- synopsis.py 22 Nov 2003 21:55:24 -0000 1.3
+++ synopsis.py 24 Nov 2003 22:10:40 -0000 1.4
@@ -1,5 +1,6 @@
#! /usr/bin/env python
+from Synopsis import config
from Synopsis.process import process
from Synopsis.Processor import *
from Synopsis.Processors import *
@@ -14,28 +15,29 @@ from Synopsis.Formatters import TexInfo
from Synopsis.Formatters import Dump
from distutils import sysconfig
+import sys, os.path
-topdir = '../../'
+topdir = os.path.abspath(sys.argv[0] + '/../../..')
python = Composite(Python.Parser(basename = topdir),
JavaTags(),
Summarizer())
-cxx = Composite(Cxx.Parser(base_path = topdir,
- cppflags = ['-I%s'%(topdir + 'Synopsis/Parsers/Cxx'),
- '-I%s'%(sysconfig.get_python_inc())],
- syntax_prefix='links',
- xref_prefix='xref'),
- EmptyNS(),
- Dummies(),
- SSDComments(),
- JavaTags(),
- Summarizer())
+cxx = Cxx.Parser(base_path = topdir,
+ cppflags = ['-I%s'%(topdir + '/Synopsis/Parsers/Cxx'),
+ '-I%s'%(sysconfig.get_python_inc())],
+ syntax_prefix='links',
+ xref_prefix='xref')
-cxx_processor = Linker(NamePrefixer(prefix = ['Synopsis','Parsers','Cxx', 'Parser'],
+cxx_processor = Linker(EmptyNS(),
+ Dummies(),
+ SSDComments(),
+ JavaTags(),
+ Summarizer(),
+ NamePrefixer(prefix = ['Synopsis', 'Parsers', 'Cxx', 'Parser'],
type = 'Package'))
-html = HTML.Formatter(stylesheet_file = '../../demo/html.css',
+html = HTML.Formatter(stylesheet_file = os.path.join(config.datadir, 'html.css'),
toc_out = 'links.toc',
file_layout = NestedFileLayout(),
tree_formatter = TreeFormatterJS(),
- Previous message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/dist/command build_doc.py,1.5,1.6
- Next message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Formatters Dump.py,1.5,1.6
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Synopsis-changes mailing list