SEESenv/scripts/docbook2html.py
author amit@thunder
Sat, 27 Feb 2010 00:10:28 +0530
changeset 32 de7ac08f237b
parent 29 5ce5b22a9a0b
child 34 18b34db550ec
permissions -rw-r--r--
Commiting a simple hook to do the auto build job
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:
32
de7ac08f237b Commiting a simple hook to do the auto build job
amit@thunder
parents: 29
diff changeset
     6
#	command="xsltproc html-single.xsl %s > %s.html" %(name ,name.split('.')[0])
de7ac08f237b Commiting a simple hook to do the auto build job
amit@thunder
parents: 29
diff changeset
     7
    command="xsltproc %shtml-single.xsl %s > %s.html" %(xsl_loc, name ,name.split('.')[0])
de7ac08f237b Commiting a simple hook to do the auto build job
amit@thunder
parents: 29
diff changeset
     8
0
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     9
	print command	
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
    10
	subprocess.Popen(command,shell=True)
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
    11
	time.sleep(10)