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

Contents of /trunk/www/working/scripts/html2doc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 149 - (show annotations)
Sat Dec 11 09:41:39 2010 UTC (13 years, 4 months ago) by sng
File size: 3942 byte(s)
fixing USB installation instructions (windows only) \
Tahnks to Mathieu-Philippe Aubert
1 #!/bin/bash
2 ##############################################################################
3 # #
4 # html2doc, (C) 2007-2010 S. Georgaras <sng@hellug.gr> #
5 # #
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 doc.html
55
56 do
57 cp $n 2doc
58 done
59
60 cd 2doc
61 mkdir doc 2>/dev/null
62 mv doc.html README.html
63
64 for n in *.html;do
65 sed '
66 s{"doc.html"{"README.html"{g
67 s{<a href="news.php">News</a>{{
68 s{^[ \t]*<a href="index.html#download">Download</a>{{
69 s{^[ \t]*<a href="index.html#credits">Credits</a>{{
70 s{^[ \t]*<a href="index.html">Home</a>{{
71 s{^[ \t]*<a href="help.html">Help</a>{{
72 s{^[ \t]*<a href="download.html">Download</a>{{
73 s{^[ \t]*<a href="screenshots.html">Screenshots</a>{{
74 s{[hH][rR][Ee][fF]="README.html"{href="../README.html"{g
75 s{>Documentation<{>Offline Documentation<{
76 s{Documentation:{Offline Documentation:{
77 /<div id="rss">/ , /<.div>/ d
78 /<div id="lphp"/d
79 ' "$n" > doc/"$n"
80 rm "$n"
81 done
82
83 # Make sure the UNSTABLE WARNINGS are off
84 for n in doc/*.html;do
85 sed '/<.[sS][Tt][yY][lL][eE]>/ i \
86 #warning { display: none; }' "$n" > "$n".$$ && mv "$n".$$ "$n"
87 done
88
89 # Fixing README.html
90 sed '
91 s{[hH][rR][Ee][fF]="\.\./README.html"{href="README.html"{g
92 s{<[aA] [hH][rR][Ee][fF]="\([^"]*\)">\([^<]*\)</a><[bB][rR][^>]*>{<a href="doc/\1">\2</a><br>{
93
94 s{\(.\)images/{\1doc/images/{g
95 s{doc/images/line.png{{
96
97 /<div id="menu">/,/<.div>/d
98 /<div id="footer">/i \
99 </div>
100
101 ' doc/README.html > README.html
102 rm doc/README.html
103
104
105 # At this point we should be in 2doc/
106 # go back to scripts/ directory
107 cd ../working/scripts
108 ./html2txt
109
110 # finally tar them all together
111
112 cd ../../2doc
113 pwd
114 tar --exclude=.svn -czf ../doc.tar.gz *
115 cp ../doc.tar.gz ../../create-clonezilla-sysresccd/files
116

Properties

Name Value
svn:executable *

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26