scripts/docbook2html.py
author amit@thunder
Mon, 25 Jan 2010 18:56:45 +0530
changeset 0 8083d21c0020
permissions -rw-r--r--
The first commit of all the required files for the review app
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)