SEESenv/scripts/docbook2html.py
author amit@thunder
Wed, 10 Mar 2010 17:39:26 +0530
changeset 45 b5bff924ef69
parent 41 e54725be4df6
child 49 3b5f1341d6c6
permissions -rw-r--r--
Some more changes to soup is made in final html also comment.html has been changed so the links don't appear

import glob, os, re, sys
import subprocess
import time
import sys
repo=sys.argv[1]

xsl_loc='/home/hg/repos/SEES-hacks/SEESenv/scripts/'

names = glob.glob(os.path.join(repo,'ch*.docbook'))
for name in names:
#   command="xsltproc html-single.xsl %s > %s.html" %(name ,name.split('.')[0])    
    command="xsltproc %shtml-single.xsl %s > %s.html" %(xsl_loc, name ,name.split('.')[0])

    print command	
    subprocess.Popen(command,shell=True)
    time.sleep(10)