SEESenv/scripts/docbook2html.py
author amit@thunder
Sun, 28 Feb 2010 17:28:30 +0530
changeset 34 18b34db550ec
parent 32 de7ac08f237b
child 41 e54725be4df6
permissions -rw-r--r--
some really stupid mistakes corrected
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
34
18b34db550ec some really stupid mistakes corrected
amit@thunder
parents: 32
diff changeset
     4
xsl_loc='/home/hg/repos/SEES-hacks/SEESenv/scripts/'
29
5ce5b22a9a0b Making changes for an automatic build so writing paths according to server
amit@thunder
parents: 2
diff changeset
     5
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
     6
for name in names:
34
18b34db550ec some really stupid mistakes corrected
amit@thunder
parents: 32
diff changeset
     7
#   command="xsltproc html-single.xsl %s > %s.html" %(name ,name.split('.')[0])    
32
de7ac08f237b Commiting a simple hook to do the auto build job
amit@thunder
parents: 29
diff changeset
     8
    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
     9
34
18b34db550ec some really stupid mistakes corrected
amit@thunder
parents: 32
diff changeset
    10
    print command	
18b34db550ec some really stupid mistakes corrected
amit@thunder
parents: 32
diff changeset
    11
    subprocess.Popen(command,shell=True)
18b34db550ec some really stupid mistakes corrected
amit@thunder
parents: 32
diff changeset
    12
    time.sleep(10)