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

Annotation of /trunk/www/working/scripts/html2doc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 183 - (hide annotations)
Mon Jul 4 13:31:17 2011 UTC (12 years, 9 months ago) by sng
File size: 3961 byte(s)
- Fixing a misplaced cd command in usb.html
- Adding a basic tutorial (basic-vi.html)
- Updating trunk site

1 sng 49 #!/bin/bash
2     ##############################################################################
3     # #
4 sng 55 # html2doc, (C) 2007-2010 S. Georgaras <sng@hellug.gr> #
5 sng 49 # #
6     # This file is part of Clonezilla-SysRescCD. #
7     # #
8     # Clonezilla-SysRescCD is free software: you can redistribute it and/or #
9     # modify it under the terms of the GNU General Public License as published #
10     # by the Free Software Foundation, either version 2 of the License, or #
11     # (at your option) any later version. #
12     # #
13     # Clonezilla-SysRescCD is distributed in the hope that it will be useful, #
14     # but WITHOUT ANY WARRANTY; without even the implied warranty of #
15     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
16     # GNU General Public License for more details. #
17     # #
18     # You should have received a copy of the GNU General Public License along #
19     # with Clonezilla-SysRescCD. If not, see <http://www.gnu.org/licenses/>. #
20     # #
21     ##############################################################################
22    
23    
24    
25     ##############################################################################
26     # Configuration section
27     #
28     # Set whereIsTheISO to the location of current Clonezilla-SysRescCD ISO file
29     # Set whereIsTheTarBall to the location of current Clonezilla-SysRescCD TGZ file
30     whereIsTheISO=/e/clonezilla-sysresccd-full-mod-"$myVersion"/clonezilla-sysresccd-full-mod-"$myVersion".iso
31     whereIsTheISO=/e/clonezilla-sysresccd-full-mod-"$myVersion".iso
32    
33     whereIsTheTarBall=/home/spiros/multibootcd/create-clonezilla-sysresccd-"$myVersion".tar.gz
34    
35     # Go to www/ directory
36     cd ..
37     cd ..
38     for n in usb.html \
39     boot-params.html \
40     clonezilla.html \
41     backup.html \
42     backup-smb.html \
43     restoration.html \
44     restore.html \
45     restore-burn.html \
46     reloc-img.html \
47     supergrubdisk.html \
48     oldboot.html \
49     sysresccd.html \
50     partitions.html \
51     recover.html \
52     own-scripts.html \
53     annex-a-devices.html \
54 sng 183 basic-vi.html \
55     doc.html
56 sng 49
57     do
58     cp $n 2doc
59     done
60    
61     cd 2doc
62     mkdir doc 2>/dev/null
63     mv doc.html README.html
64    
65     for n in *.html;do
66     sed '
67     s{"doc.html"{"README.html"{g
68     s{<a href="news.php">News</a>{{
69     s{^[ \t]*<a href="index.html#download">Download</a>{{
70     s{^[ \t]*<a href="index.html#credits">Credits</a>{{
71     s{^[ \t]*<a href="index.html">Home</a>{{
72     s{^[ \t]*<a href="help.html">Help</a>{{
73 sng 113 s{^[ \t]*<a href="download.html">Download</a>{{
74 sng 49 s{^[ \t]*<a href="screenshots.html">Screenshots</a>{{
75     s{[hH][rR][Ee][fF]="README.html"{href="../README.html"{g
76 sng 52 s{>Documentation<{>Offline Documentation<{
77     s{Documentation:{Offline Documentation:{
78 sng 55 /<div id="rss">/ , /<.div>/ d
79     /<div id="lphp"/d
80 sng 49 ' "$n" > doc/"$n"
81     rm "$n"
82     done
83 sng 52
84 sng 149 # Make sure the UNSTABLE WARNINGS are off
85     for n in doc/*.html;do
86     sed '/<.[sS][Tt][yY][lL][eE]>/ i \
87     #warning { display: none; }' "$n" > "$n".$$ && mv "$n".$$ "$n"
88     done
89 sng 52
90     # Fixing README.html
91 sng 49 sed '
92     s{[hH][rR][Ee][fF]="\.\./README.html"{href="README.html"{g
93     s{<[aA] [hH][rR][Ee][fF]="\([^"]*\)">\([^<]*\)</a><[bB][rR][^>]*>{<a href="doc/\1">\2</a><br>{
94    
95 sng 57 s{\(.\)images/{\1doc/images/{g
96     s{doc/images/line.png{{
97    
98 sng 49 /<div id="menu">/,/<.div>/d
99     /<div id="footer">/i \
100     </div>
101    
102     ' doc/README.html > README.html
103     rm doc/README.html
104    
105 sng 60
106     # At this point we should be in 2doc/
107     # go back to scripts/ directory
108     cd ../working/scripts
109     ./html2txt
110    
111     # finally tar them all together
112    
113     cd ../../2doc
114     pwd
115     tar --exclude=.svn -czf ../doc.tar.gz *
116     cp ../doc.tar.gz ../../create-clonezilla-sysresccd/files
117    

Properties

Name Value
svn:executable *

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26