# HG changeset patch # User amit@thunder # Date 1267358310 -19800 # Node ID 18b34db550eca3f850a1d3587d332d7b2cae07cf # Parent bc535262231d330c2841eced58f7344c55566f3a some really stupid mistakes corrected diff -r bc535262231d -r 18b34db550ec SEESenv/scripts/docbook2html.py --- a/SEESenv/scripts/docbook2html.py Sun Feb 28 16:22:19 2010 +0530 +++ b/SEESenv/scripts/docbook2html.py Sun Feb 28 17:28:30 2010 +0530 @@ -1,11 +1,12 @@ import glob, os, re, sys import subprocess import time +xsl_loc='/home/hg/repos/SEES-hacks/SEESenv/scripts/' names = glob.glob('/home/hg/repos/SEES-hacks/temp/ch*.docbook') for name in names: -# command="xsltproc html-single.xsl %s > %s.html" %(name ,name.split('.')[0]) +# command="xsltproc html-single.xsl %s > %s.html" %(name ,name.split('.')[0]) command="xsltproc %shtml-single.xsl %s > %s.html" %(xsl_loc, name ,name.split('.')[0]) - print command - subprocess.Popen(command,shell=True) - time.sleep(10) + print command + subprocess.Popen(command,shell=True) + time.sleep(10) diff -r bc535262231d -r 18b34db550ec SEESenv/scripts/myrst2xml.py --- a/SEESenv/scripts/myrst2xml.py Sun Feb 28 16:22:19 2010 +0530 +++ b/SEESenv/scripts/myrst2xml.py Sun Feb 28 17:28:30 2010 +0530 @@ -33,7 +33,7 @@ xml_file_temp='/'.join(file_name.split('/')[:-2]) name='ch'+str(chapterno)+name.split('.')[0] - xml_file=tmp_folder+'/'+name+'.xml' + xml_file=tmp_folder+name+'.xml' print xml_file # a=open(xml_file,'w') publish_file(source_path=file_name, destination_path=xml_file,parser_name='restructuredtext', writer_name='xml') diff -r bc535262231d -r 18b34db550ec sees.hook --- a/sees.hook Sun Feb 28 16:22:19 2010 +0530 +++ b/sees.hook Sun Feb 28 17:28:30 2010 +0530 @@ -1,5 +1,7 @@ repo="/home/hg/repos/SEES-hacks/SEESenv/scripts" temp_dir="/home/hg/repos/SEES-hacks" +echo $temp_dir/temp +echo $repo/myrst2xml.py mkdir $temp_dir/temp python $repo/myrst2xml.py