/[clonezilla-sysresccd]/trunk/www/working/scripts/html2doc
ViewVC logotype

Diff of /trunk/www/working/scripts/html2doc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/www/working/scripts/html2offline revision 51 by sng, Thu May 20 16:05:47 2010 UTC trunk/www/working/scripts/html2doc revision 57 by sng, Fri May 21 21:47:03 2010 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  ##############################################################################  ##############################################################################
3  #                                                                            #  #                                                                            #
4  # html2offline, (C) 2007-2010 S. Georgaras <sng@hellug.gr>                   #  # html2doc, (C) 2007-2010 S. Georgaras <sng@hellug.gr>                       #
5  #                                                                            #  #                                                                            #
6  # This file is part of Clonezilla-SysRescCD.                                 #  # This file is part of Clonezilla-SysRescCD.                                 #
7  #                                                                            #  #                                                                            #
# Line 71  s{^[ \t]*<a href="index.html">Home</a>{{ Line 71  s{^[ \t]*<a href="index.html">Home</a>{{
71  s{^[ \t]*<a href="help.html">Help</a>{{  s{^[ \t]*<a href="help.html">Help</a>{{
72  s{^[ \t]*<a href="screenshots.html">Screenshots</a>{{  s{^[ \t]*<a href="screenshots.html">Screenshots</a>{{
73  s{[hH][rR][Ee][fF]="README.html"{href="../README.html"{g  s{[hH][rR][Ee][fF]="README.html"{href="../README.html"{g
74    s{>Documentation<{>Offline Documentation<{
75    s{Documentation:{Offline Documentation:{
76    /<div id="rss">/ , /<.div>/ d
77    /<div id="lphp"/d
78  ' "$n" > doc/"$n"  ' "$n" > doc/"$n"
79    rm "$n"    rm "$n"
80  done  done
81    
82    
83    # Fixing README.html
84  sed '  sed '
85  s{[hH][rR][Ee][fF]="\.\./README.html"{href="README.html"{g  s{[hH][rR][Ee][fF]="\.\./README.html"{href="README.html"{g
86  s{<[aA] [hH][rR][Ee][fF]="\([^"]*\)">\([^<]*\)</a><[bB][rR][^>]*>{<a href="doc/\1">\2</a><br>{  s{<[aA] [hH][rR][Ee][fF]="\([^"]*\)">\([^<]*\)</a><[bB][rR][^>]*>{<a href="doc/\1">\2</a><br>{
87    
88    s{\(.\)images/{\1doc/images/{g
89    s{doc/images/line.png{{
90    
91  /<div id="menu">/,/<.div>/d  /<div id="menu">/,/<.div>/d
92  /<div id="footer">/i \  /<div id="footer">/i \
93  </div>  </div>
94    
 s{>Documentation<{>Offline Documentation<{  
95  ' doc/README.html > README.html  ' doc/README.html > README.html
96  rm doc/README.html  rm doc/README.html
97    

Legend:
Removed from v.51  
changed lines
  Added in v.57

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26