From: Greg W. <gw...@us...> - 2004-09-23 01:07:04
|
Update of /cvsroot/optik/optik In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20867 Added Files: mkhtml Removed Files: mkdoc Log Message: Rename mkdoc to mkhtml. --- mkdoc DELETED --- --- NEW FILE: mkhtml --- #!/usr/bin/python # Convert the Optik docs to HTML import sys, os from glob import glob from distutils.dep_util import newer from docutils.core import publish_file args = sys.argv[1:] if not args: sys.exit("usage: mkdoc outdir") outdir = args[0] for filename in glob("[a-z]*.txt"): outname = os.path.join(outdir, filename.replace(".txt", ".html")) if newer(filename, outname): print "converting %s to %s" % (filename, outname) publish_file(source_path=filename, destination_path=outname, writer_name='html') |