SEESenv/scripts/docbook2html.py
author amit@thunder
Sat, 13 Feb 2010 13:32:38 +0530
changeset 5 c9c9819cd5e5
parent 2 52d12eb31c30
child 29 5ce5b22a9a0b
permissions -rw-r--r--
tags 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)