SEESenv/scripts/docbook2html.py
author amit@thunder
Thu, 25 Feb 2010 18:53:51 +0530
changeset 30 f66b0a5ebf40
parent 29 5ce5b22a9a0b
child 32 de7ac08f237b
permissions -rw-r--r--
Changes in Path
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
29
5ce5b22a9a0b Making changes for an automatic build so writing paths according to server
amit@thunder
parents: 2
diff changeset
     4
names = glob.glob('/home/hg/repos/SEES-hacks/temp/ch*.docbook')
0
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)