some really stupid mistakes corrected
authoramit@thunder
Sun, 28 Feb 2010 17:28:30 +0530
changeset 34 18b34db550ec
parent 33 bc535262231d
child 35 9c8a782c7460
some really stupid mistakes corrected
SEESenv/scripts/docbook2html.py
SEESenv/scripts/myrst2xml.py
sees.hook
--- 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)
--- 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') 
--- 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