SEESenv/scripts/docbook2html.py
author amit@thunder
Mon, 12 Apr 2010 15:12:41 +0530
changeset 49 3b5f1341d6c6
parent 41 e54725be4df6
permissions -rw-r--r--
Some small changes ... bug fixes
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
41
e54725be4df6 Changed paths dependent on repo location to be taken from the script also changed how the soup is printed
amit@thunder
parents: 34
diff changeset
     4
import sys
e54725be4df6 Changed paths dependent on repo location to be taken from the script also changed how the soup is printed
amit@thunder
parents: 34
diff changeset
     5
repo=sys.argv[1]
e54725be4df6 Changed paths dependent on repo location to be taken from the script also changed how the soup is printed
amit@thunder
parents: 34
diff changeset
     6
34
18b34db550ec some really stupid mistakes corrected
amit@thunder
parents: 32
diff changeset
     7
xsl_loc='/home/hg/repos/SEES-hacks/SEESenv/scripts/'
41
e54725be4df6 Changed paths dependent on repo location to be taken from the script also changed how the soup is printed
amit@thunder
parents: 34
diff changeset
     8
e54725be4df6 Changed paths dependent on repo location to be taken from the script also changed how the soup is printed
amit@thunder
parents: 34
diff changeset
     9
names = glob.glob(os.path.join(repo,'ch*.docbook'))
0
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
    10
for name in names:
34
18b34db550ec some really stupid mistakes corrected
amit@thunder
parents: 32
diff changeset
    11
#   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
    12
    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
    13
34
18b34db550ec some really stupid mistakes corrected
amit@thunder
parents: 32
diff changeset
    14
    print command	
18b34db550ec some really stupid mistakes corrected
amit@thunder
parents: 32
diff changeset
    15
    subprocess.Popen(command,shell=True)
49
3b5f1341d6c6 Some small changes ... bug fixes
amit@thunder
parents: 41
diff changeset
    16
    time.sleep(2)