Made changes so that the files so that files above chapter 10 do not come twice also changed the name so that any chapter beyond 9 is listed in the end
--- a/SEESenv/scripts/changenames.py Tue Mar 02 18:49:48 2010 +0530
+++ b/SEESenv/scripts/changenames.py Thu Mar 04 14:33:38 2010 +0530
@@ -10,8 +10,11 @@
reg_obj=re.compile(os.path.join(repo,'ch1[0-9].*.html'))
if (reg_obj.match(name)):
changed_name=re.sub('ch1','chn1',name)
+ command2="rm %s" %(name,)
else:
changed_name=name
- command="cp %s %s" %(name ,changed_name)
- subprocess.Popen(command,shell=True)
+ command1="cp %s %s" %(name ,changed_name)
+ subprocess.Popen(command1,shell=True)
time.sleep(2)
+ subprocess.Popen(command2,shell=True)
+ time.sleep(1)
Binary file SEESenv/web/hgbook/comments/models.pyc has changed
Binary file SEESenv/web/hgbook/settings.pyc has changed
--- a/sees.hook Tue Mar 02 18:49:48 2010 +0530
+++ b/sees.hook Thu Mar 04 14:33:38 2010 +0530
@@ -1,6 +1,7 @@
repo_scripts="/home/hg/repos/SEES-hacks/SEESenv/scripts"
temp_dir="/home/hg/repos/SEES-hacks"
repo="/home/hg/repos/test_review/sttp/"
+html_folder="/home/hg/repos/SEES-hacks/SEESenv/web/html/"
mkdir $temp_dir/temp
python $repo_scripts/myrst2xml.py $repo
python $repo_scripts/rst2docbook.py $temp_dir/temp
@@ -8,6 +9,7 @@
python $repo_scripts/docbook2html.py $temp_dir/temp
python $repo_scripts/finalhtml.py $temp_dir/temp
python $repo_scripts/changenames.py $temp_dir/temp
-cp $temp_dir/temp/*.html /home/hg/repos/SEES-hacks/SEESenv/web/html/
+rm -r $html_folder/*.html
+cp $temp_dir/temp/*.html $html_folder
cp $temp_dir/temp/p_list.py /home/hg/repos/SEES-hacks/SEESenv/web/hgbook/comments/