From f05001f84d966a0b0c80b9d5212c2f3ac11d1660 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 9 Jan 2011 20:28:06 +0000 Subject: Rework POW build so that we can use static libraries again. svn path=/configure; revision=3602 --- pow/POW-0.7/docs/doc.py | 52 ------------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100755 pow/POW-0.7/docs/doc.py (limited to 'pow/POW-0.7/docs/doc.py') diff --git a/pow/POW-0.7/docs/doc.py b/pow/POW-0.7/docs/doc.py deleted file mode 100755 index 0a0e4450..00000000 --- a/pow/POW-0.7/docs/doc.py +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env python - -import sys, string, os, commands - -class DocError(Exception): - def __init__(self, mesg): - self.mesg = mesg - - def __str__(self): - return self.mesg - -class Extractor: - def __init__(self, module): - exec('import %s' % module) - self.module = eval(module) - - def get(self): - fragments = '' - for doc in self.module._docset(): - fragments += doc - - return '' + fragments + '' - - -if __name__ == '__main__': - if len(sys.argv) < 2: - raise DocError( 'module name must be supplied') - - lines = '' - for mod in sys.argv[1:]: - print 'processing module', mod - ex = Extractor(mod) - lines += ex.get() - - file = open('fragments.xml', 'w') - file.write('%s\n%s\n%s' % ('', lines, '')) - file.close() - - print 'transforming document...' - (status, doc) = commands.getstatusoutput('java org.apache.xalan.xslt.Process -IN fragments.xml -XSL doc.xsl' ) - if status: - print doc - sys.exit(1) - - doc = doc.replace('/>', '>') - lines = string.split(doc, '\n') - lines[0] = '' - - file = open(sys.argv[1] + '.sgm', 'w') - file.write( string.join(lines, '\n') ) - file.close() - -- cgit v1.2.3