SEESenv/scripts/docbook2html.py
changeset 41 e54725be4df6
parent 34 18b34db550ec
child 49 3b5f1341d6c6
equal deleted inserted replaced
40:ef147a79b098 41:e54725be4df6
     1 import glob, os, re, sys
     1 import glob, os, re, sys
     2 import subprocess
     2 import subprocess
     3 import time
     3 import time
       
     4 import sys
       
     5 repo=sys.argv[1]
       
     6 
     4 xsl_loc='/home/hg/repos/SEES-hacks/SEESenv/scripts/'
     7 xsl_loc='/home/hg/repos/SEES-hacks/SEESenv/scripts/'
     5 names = glob.glob('/home/hg/repos/SEES-hacks/temp/ch*.docbook')
     8 
       
     9 names = glob.glob(os.path.join(repo,'ch*.docbook'))
     6 for name in names:
    10 for name in names:
     7 #   command="xsltproc html-single.xsl %s > %s.html" %(name ,name.split('.')[0])    
    11 #   command="xsltproc html-single.xsl %s > %s.html" %(name ,name.split('.')[0])    
     8     command="xsltproc %shtml-single.xsl %s > %s.html" %(xsl_loc, name ,name.split('.')[0])
    12     command="xsltproc %shtml-single.xsl %s > %s.html" %(xsl_loc, name ,name.split('.')[0])
     9 
    13 
    10     print command	
    14     print command