scripts/docbook2html.py
author amit@thunder
Fri, 05 Feb 2010 23:42:24 +0530
changeset 1 672eaaab9204
parent 0 8083d21c0020
permissions -rw-r--r--
Added some new html files that failed earlier during change from rst
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)