--- a/SEESenv/scripts/docbook2html.py Fri Feb 26 22:39:39 2010 +0530
+++ b/SEESenv/scripts/docbook2html.py Sat Feb 27 00:10:28 2010 +0530
@@ -3,7 +3,9 @@
import time
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)
--- a/SEESenv/scripts/finalhtml.py Fri Feb 26 22:39:39 2010 +0530
+++ b/SEESenv/scripts/finalhtml.py Sat Feb 27 00:10:28 2010 +0530
@@ -30,7 +30,7 @@
return soup
if __name__=='__main__':
- file_names=glob.glob(repo+'ch*.html')
+ file_names=glob.glob(temp_dir+'ch*.html')
for file_name in file_names:
file_obj=open(file_name,'r')
soup=finalchanges(file_name,file_obj.read())
--- a/SEESenv/scripts/myrst2xml.py Fri Feb 26 22:39:39 2010 +0530
+++ b/SEESenv/scripts/myrst2xml.py Sat Feb 27 00:10:28 2010 +0530
@@ -33,7 +33,7 @@
xml_file_temp='/'.join(file_name.split('/')[:-2])
name='ch'+str(chapterno)+name.split('.')[0]
- xml_file=xml_file_temp+'/'+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')
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/index.config Sat Feb 27 00:10:28 2010 +0530
@@ -0,0 +1,14 @@
+Introduction/Introduction.rst
+basic_python/intro.rst
+basic_python/list_tuples.rst
+basic_python/strings_dicts.rst
+basic_python/func.rst
+basic_python/oop.rst
+basic_python/interim_assessment.rst
+ult/ult_module_plan.rst
+ult/Using_Linux_Tools.rst
+ult/session4.rst
+ult/Section_5.rst
+versionControl/index.rst
+versionControl/versionControl.rst
+versionControl/handOut.rst
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test.hook Sat Feb 27 00:10:28 2010 +0530
@@ -0,0 +1,12 @@
+repo="/home/hg/repos/SEES-hacks/SEESenv/scripts"
+temp_dir="/home/hg/repos/SEES-hacks"
+
+mkdir $temp_dir/temp
+python $repo/myrst2xml.py
+python $repo/rst2docbook.py
+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/
+