/[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/html2html revision 49 by sng, Thu May 20 15:43:26 2010 UTC trunk/www/working/scripts/html2doc revision 52 by sng, Thu May 20 16:24:26 2010 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  ##############################################################################  ##############################################################################
3  #                                                                            #  #                                                                            #
4  # html2txt, (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  ' "$n" > doc/"$n"  ' "$n" > doc/"$n"
77    rm "$n"    rm "$n"
78  done  done
79    
80    
81    # Fixing README.html
82  sed '  sed '
83  s{[hH][rR][Ee][fF]="\.\./README.html"{href="README.html"{g  s{[hH][rR][Ee][fF]="\.\./README.html"{href="README.html"{g
84  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>{
# Line 82  s{<[aA] [hH][rR][Ee][fF]="\([^"]*\)">\([ Line 87  s{<[aA] [hH][rR][Ee][fF]="\([^"]*\)">\([
87  /<div id="footer">/i \  /<div id="footer">/i \
88  </div>  </div>
89    
90  s{>Documentation<{>Offline Documentation<{  
91    
92    /<div id="rss">/ , /<.div>/ d
93    /<div id="lphp"/d
94    
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.49  
changed lines
  Added in v.52

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26