# HG changeset patch # User amit@thunder # Date 1267373487 -19800 # Node ID 194e1bdfd1cb852a45908a9998009c299a86bf74 # Parent 33abbab466a2294180e665f62b84441fe751eaf1 Some bug fixing diff -r 33abbab466a2 -r 194e1bdfd1cb SEESenv/scripts/myrst2xml.py --- a/SEESenv/scripts/myrst2xml.py Sun Feb 28 20:06:53 2010 +0530 +++ b/SEESenv/scripts/myrst2xml.py Sun Feb 28 21:41:27 2010 +0530 @@ -36,12 +36,14 @@ 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') - + try: + publish_file(source_path=file_name, destination_path=xml_file,parser_name='restructuredtext', writer_name='xml') + except : + pass def walk(repo): global chapterno # mainfolder='/home/hg/repos/sttp/' - for readline in open('/home/hg/repos/SEES-hacks/SEESenv/scripts/index.config','r').readlines(): + for readline in open('/home/hg/repos/SEES-hacks/index.config','r').readlines(): chapterno+=1 filename=repo+readline convert2xml(filename) diff -r 33abbab466a2 -r 194e1bdfd1cb sees.hook --- a/sees.hook Sun Feb 28 20:06:53 2010 +0530 +++ b/sees.hook Sun Feb 28 21:41:27 2010 +0530 @@ -1,7 +1,5 @@ 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 @@ -9,7 +7,6 @@ python $repo/autoid.py python $repo/docbook2html.py python $repo/finalhtml.py - cp $temp_dir/temp/*.html /home/amit/repos/SEES-hacks/SEESenv/web/html/ cp $temp_dir/temp/p_list.py /home/amit/repos/SEES-hacks/SEESenv/web/hgbook/comments/ -rm -r $temp_dir/temp +