SEESenv/scripts/docbook2html.py
author amit@thunder
Fri, 12 Feb 2010 01:11:21 +0530
changeset 2 52d12eb31c30
parent 0 scripts/docbook2html.py@8083d21c0020
child 29 5ce5b22a9a0b
permissions -rw-r--r--
Virtual enviroment for SEES-hacks added ...
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     1
import glob, os, re, sys
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     2
import subprocess
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     3
import time
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     4
names = glob.glob('ch*.docbook')
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     5
for name in names:
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     6
	command="xsltproc html-single.xsl %s > %s.html" %(name ,name.split('.')[0])
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     7
	print command	
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     8
	subprocess.Popen(command,shell=True)
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     9
	time.sleep(10)