1 |
sng |
28 |
#!/bin/bash |
2 |
sng |
46 |
############################################################################## |
3 |
|
|
# # |
4 |
|
|
# 2site, (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 |
sng |
28 |
|
23 |
|
|
|
24 |
sng |
46 |
############################################################################## |
25 |
sng |
44 |
# Configuration section |
26 |
|
|
# |
27 |
|
|
# Set whereIsTheISO to the location of current Clonezilla-SysRescCD ISO file |
28 |
|
|
# Set whereIsTheTarBall to the location of current Clonezilla-SysRescCD TGZ file |
29 |
sng |
99 |
whereIsTheISO=/e/clonezilla-sysresccd-"$myVersion" |
30 |
sng |
28 |
|
31 |
sng |
46 |
############################################################################## |
32 |
|
|
# Script starts here # |
33 |
|
|
############################################################################## |
34 |
sng |
45 |
|
35 |
|
|
# Go to www/ directory |
36 |
sng |
44 |
cd .. |
37 |
|
|
cd .. |
38 |
|
|
echo 'Creating files' |
39 |
|
|
echo -n " template.html... " |
40 |
|
|
myDate=`sed -n '1p' working/release-data ` |
41 |
|
|
myVersion=`sed -n '2p' working/release-data ` |
42 |
|
|
thisDate=`date '+%d/%m/%Y'` |
43 |
sng |
28 |
|
44 |
sng |
99 |
whereIsTheISO="$whereIsTheISO""$myVersion" |
45 |
|
|
whereIsTheTarBall="$whereIsTheISO"/create-clonezilla-sysresccd-"$myVersion".tar.gz |
46 |
|
|
ISO_I686_SIZE=`du -h "$whereIsTheISO"/clonezilla-sysresccd-i686-"$myVersion"/clonezilla-sysresccd-i686-"$myVersion".iso | sed 's|[ \t].*||'` |
47 |
|
|
ISO_I686_MD5=`cat "$whereIsTheISO"/clonezilla-sysresccd-i686-"$myVersion"/md5sum.txt | sed 's|[ \t].*||'` |
48 |
|
|
ISO_AMD64_SIZE=`du -h "$whereIsTheISO"/clonezilla-sysresccd-amd64-"$myVersion"/clonezilla-sysresccd-amd64-"$myVersion".iso | sed 's|[ \t].*||'` |
49 |
|
|
ISO_AMD64_MD5=`cat "$whereIsTheISO"/clonezilla-sysresccd-amd64-"$myVersion"/md5sum.txt | sed 's|[ \t].*||'` |
50 |
|
|
ISO_I486_SIZE=`du -h "$whereIsTheISO"/clonezilla-sysresccd-i486-"$myVersion"/clonezilla-sysresccd-i486-"$myVersion".iso | sed 's|[ \t].*||'` |
51 |
|
|
ISO_I486_MD5=`cat "$whereIsTheISO"/clonezilla-sysresccd-i486-"$myVersion"/md5sum.txt | sed 's|[ \t].*||'` |
52 |
|
|
|
53 |
sng |
28 |
tarballSize=$(du -h "$whereIsTheTarBall" | sed "s|/.*||" |sed 's|\([kMG]\).*| \1|') |
54 |
|
|
isoSizeEN=$(echo "$isoSize" | sed 's|,|.|') |
55 |
|
|
# isoSizeGR=$(echo "$isoSize" | sed 's|\.|,|') |
56 |
|
|
tarballSizeEN=$(echo "$tarballSize" | sed 's|,|.|') |
57 |
|
|
# tarballSizeGR=$(echo "$tarballSize" | sed 's|\.|,|') |
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
sng |
42 |
tr -d '\n' < working/clonezilla-sysresccd.rss | sed 's|<[tT][iI][tT][lL][eE]>|\n<title>|g' | sed 's|</[pP][uU][bB][Dd][aA][tT][eE]>|</pubDate>\n|g' | grep '<title>' > /tmp/iaa.$$ |
62 |
sng |
28 |
|
63 |
sng |
42 |
rm /tmp/aai.$$ 2>/dev/null |
64 |
sng |
28 |
while read line;do |
65 |
|
|
dt="$(echo "$line" | sed 's|.*<guid isPermaLink="false">.*, ||' |sed 's| [0-9][0-9]:.*||' | sed 's|.*<pubDate>..., ||'| sed 's|\([^ ]*\) \([^ ]*\) \(.*\)|\3 \2 \1|' | sed 's|Jan|01| |
66 |
|
|
s|Feb|02| |
67 |
|
|
s|Mar|03| |
68 |
|
|
s|Apr|04| |
69 |
|
|
s|May|05| |
70 |
|
|
s|Jun|06| |
71 |
|
|
s|Jul|07| |
72 |
|
|
s|Aug|08| |
73 |
|
|
s|Sep|09| |
74 |
|
|
s|Oct|10| |
75 |
|
|
s|Nov|11| |
76 |
|
|
s|Dec|12| |
77 |
|
|
')" |
78 |
|
|
tit="$(echo "$line" | sed 's|</[Tt][iI][tT][lL][eE]>.*||' | sed 's|<title>||')" |
79 |
sng |
42 |
echo "$dt - $tit" | grep '^[0-9]' >> /tmp/aai.$$ |
80 |
|
|
done < /tmp/iaa.$$ |
81 |
|
|
rm /tmp/iaa.$$ |
82 |
sng |
28 |
|
83 |
sng |
42 |
l="$(cat /tmp/aai.$$ | sort -r | sed 's|^\([0-9][0-9][0-9][0-9]\) \([0-9][0-9]\) \([0-9][0-9]\) - \(.*\)|<p><a href="news.php#\4">\3/\2/\1 - \4</a></p>|' | sed -n '1,$p' | sed 's|$| \\|')" |
84 |
sng |
28 |
|
85 |
|
|
|
86 |
|
|
|
87 |
sng |
42 |
rm /tmp/aai.$$ |
88 |
sng |
28 |
|
89 |
|
|
sed "/<H1[^>]*>What's New<.H1>/a \ |
90 |
|
|
$l |
91 |
sng |
45 |
" working/.template.html | sed "s|\"myDate\"|$myDate|" | sed "s|\"myVersion\"|$myVersion|g" | sed "s|Last update: [^<]*<|Last update: $thisDate<|" > template.html |
92 |
sng |
28 |
|
93 |
|
|
|
94 |
|
|
echo 'done' |
95 |
|
|
|
96 |
sng |
100 |
|
97 |
sng |
42 |
############################################################################# |
98 |
|
|
# # |
99 |
|
|
# Create news.php # |
100 |
|
|
# # |
101 |
|
|
############################################################################# |
102 |
sng |
28 |
|
103 |
|
|
echo -n ' news.php... ' |
104 |
|
|
sed -n '1,/<div id="content">/p' template.html > 1.$$ |
105 |
sng |
45 |
cat working/.news.php >> 1.$$ |
106 |
sng |
28 |
sed '1,/<div id="content">/d' template.html | sed '/<div id="menu">/,/<.div>/d' >> 1.$$ |
107 |
|
|
|
108 |
|
|
sed '/#content/s/width: 750px;/width: 950px/' 1.$$ | sed "s|background-image: url('images/line.png'); background-repeat:repeat-y;|| |
109 |
|
|
s|class=\"here\" || |
110 |
|
|
s|<a href=\"news.php\">|<a class=\"here\" href=\"news.php\">| |
111 |
|
|
s|\"myTitle\"|What's New| |
112 |
|
|
/<div id=\"header\">/a \ |
113 |
|
|
<a name=\"news-top\"></a>" > news.php |
114 |
|
|
echo 'done' |
115 |
|
|
|
116 |
|
|
|
117 |
sng |
42 |
############################################################################# |
118 |
|
|
# # |
119 |
|
|
# Create 404.html # |
120 |
|
|
# # |
121 |
|
|
############################################################################# |
122 |
sng |
28 |
echo -n ' 404.html... ' |
123 |
|
|
sed -n '1,/<div id="content">/p' template.html > 1.$$ |
124 |
|
|
sed '1,/<div id="content">/d' template.html | sed '/<div id="menu">/,/<.div>/d' >> 1.$$ |
125 |
|
|
sed '/#content/s/width: 750px;/width: 950px/' 1.$$ | sed "s|background-image: url('images/line.png'); background-repeat:repeat-y;|| |
126 |
|
|
s|class=\"here\" || |
127 |
|
|
s|\"myTitle\"|Error| |
128 |
|
|
s|#content { float: left;|#content { | |
129 |
|
|
" > xxx.html |
130 |
|
|
rm 1.$$ |
131 |
|
|
|
132 |
|
|
sed -n '1,/<.[hH][eE][aA][dD]>/p' xxx.html | sed '$d' > p1.$$ |
133 |
sng |
45 |
sed -n '1,/<!--seperator-->/p' working/.404.html >> p1.$$ |
134 |
sng |
28 |
sed -n '/<.[hH][eE][aA][dD]>/,$p' xxx.html >> p1.$$ |
135 |
|
|
mv p1.$$ xxx.html |
136 |
|
|
|
137 |
|
|
sed -n '1,/<[dD][iI][vV] [iI][dD]="content">/p' xxx.html> p1.$$ |
138 |
sng |
45 |
sed '1,/<!--seperator-->/d' working/.404.html >> p1.$$ |
139 |
sng |
28 |
sed -n '/<[dD][iI][vV] [iI][dD]="content">/,$p' xxx.html | sed '1d' >> p1.$$ |
140 |
|
|
sed '/<!--seperator-->/d' p1.$$ > 404.html |
141 |
|
|
rm *.$$ xxx.html |
142 |
|
|
echo 'done' |
143 |
|
|
|
144 |
|
|
|
145 |
|
|
|
146 |
sng |
42 |
############################################################################# |
147 |
|
|
# # |
148 |
|
|
# Create files (main menu) # |
149 |
|
|
# # |
150 |
|
|
############################################################################# |
151 |
sng |
28 |
# for n in index.html features.html doc.html download.html screenshots.html credits.html links.html;do |
152 |
|
|
echo 'Creating menu files' |
153 |
|
|
# for n in index.html screenshots.html help.html doc.html;do |
154 |
|
|
|
155 |
|
|
|
156 |
|
|
|
157 |
|
|
for n in working/*.html;do |
158 |
|
|
# for n in working/boot-params.html;do |
159 |
|
|
echo -n " ${n/working\//}... " |
160 |
|
|
myTitle=`sed -n '/<[hH]3>/p' "$n" | sed ' |
161 |
|
|
2,$d |
162 |
|
|
s/<[^<]*<[bB][rR] *\/*>\([^<]*\)<[bB][rR].*/\1/ |
163 |
|
|
s|<\/*[hH]3>||g'` |
164 |
|
|
|
165 |
|
|
|
166 |
|
|
# fix first H2 |
167 |
|
|
sed ' |
168 |
|
|
s|<[hH]2[^>]*>|<H2>|g |
169 |
|
|
0,/<[hH]2[^>]*><[aA] [nN][aA][mM][eE]/s//<H2 style="margin-top: 0;"><a name/ |
170 |
|
|
1,/<div id="content">/d |
171 |
|
|
/<div id="footer">/,$d |
172 |
|
|
/<div id="menu">/,$d |
173 |
|
|
$d' "$n" > "$n".$$ |
174 |
|
|
|
175 |
|
|
|
176 |
|
|
|
177 |
|
|
# # echo "myTitle = $myTitle" |
178 |
|
|
# X=`sed '1,/<[bB][oO][dD][yY]/d' "$n".$$ | sed '/<.[bB][oO][dD][yY]>/,$d'` |
179 |
|
|
# X=`echo "$X" | sed 's|$| \\\\|'` |
180 |
|
|
# sed "/<div id=\"content\">/a \ |
181 |
|
|
# $X |
182 |
|
|
# " template.html > tpm.$$ |
183 |
|
|
|
184 |
|
|
|
185 |
|
|
sed "/<div id=\"content\">/ r "$n".$$" template.html > tpm.$$ |
186 |
|
|
|
187 |
|
|
|
188 |
|
|
fonly="$n" |
189 |
|
|
fonly="${fonly/working\//}" |
190 |
|
|
sed '/<!--txt-only-->/!b |
191 |
|
|
:a |
192 |
|
|
/<!--end-txt-only-->/!{ |
193 |
|
|
N |
194 |
|
|
ba |
195 |
|
|
} |
196 |
|
|
s/<!--txt-only-->.*<!--end-txt-only-->//' tpm.$$ | sed 's| $||' | sed "s|\"myTitle\"|$myTitle| |
197 |
|
|
s|\"myVersion\"|$myVersion|g |
198 |
|
|
s|TARBALL_SIZE|$tarballSizeEN|g |
199 |
sng |
99 |
|
200 |
|
|
s{ISO_I686_SIZE{$ISO_I686_SIZE{g |
201 |
|
|
s{ISO_I686_MD5{$ISO_I686_MD5{g |
202 |
|
|
s{ISO_I486_SIZE{$ISO_I486_SIZE{g |
203 |
|
|
s{ISO_I486_MD5{$ISO_I486_MD5{g |
204 |
|
|
s{ISO_AMD64_SIZE{$ISO_AMD64_SIZE{g |
205 |
|
|
s{ISO_AMD64_MD5{$ISO_AMD64_MD5{g |
206 |
|
|
|
207 |
sng |
28 |
/<[hH]1>.*<[bB][rR]/d |
208 |
|
|
s|class=\"here\" || |
209 |
|
|
s|<a href=\"$fonly\">|<a class=\"here\" href=\"$fonly\">| |
210 |
|
|
s|</div><div id=\"menu\">|<div id=\"menu\">|" > "${n/working\//}" |
211 |
|
|
|
212 |
|
|
rm tpm.$$ "$n".$$ |
213 |
|
|
echo 'done' |
214 |
|
|
|
215 |
|
|
|
216 |
|
|
done |
217 |
|
|
|
218 |
|
|
|
219 |
|
|
|
220 |
sng |
42 |
############################################################################# |
221 |
|
|
# # |
222 |
|
|
# Fix doc.html - Documentation menu # |
223 |
|
|
# # |
224 |
|
|
############################################################################# |
225 |
sng |
28 |
# num=`grep -n '<div id="linkline">' doc.html | sed 's|:.*||'` |
226 |
|
|
# |
227 |
|
|
# ' |
228 |
|
|
# s|class=\"here\" || |
229 |
|
|
# s|<a href=\"$n\">|<a class=\"here\" href=\"$n\">|' doc.html > doc.html.$$ |
230 |
|
|
# mv doc.html.$$ doc.html |
231 |
|
|
|
232 |
|
|
|
233 |
|
|
echo '<H2 style="margin-top: 0;">Contents</H2> |
234 |
|
|
<p>' >list |
235 |
|
|
|
236 |
|
|
echo 'Fixing documentation files' |
237 |
|
|
count=0 |
238 |
|
|
|
239 |
sng |
37 |
|
240 |
|
|
|
241 |
|
|
# for n in project.html \ |
242 |
|
|
# custom-cd.html \ |
243 |
|
|
# usb.html \ |
244 |
|
|
# boot-params.html \ |
245 |
|
|
# clonezilla.html \ |
246 |
|
|
# backup.html \ |
247 |
|
|
# backup-smb.html \ |
248 |
|
|
# restoration.html \ |
249 |
|
|
# restore.html \ |
250 |
|
|
# restore-burn.html \ |
251 |
|
|
# reloc-img.html \ |
252 |
|
|
# supergrubdisk.html \ |
253 |
|
|
# oldboot.html \ |
254 |
|
|
# sysresccd.html \ |
255 |
|
|
# partitions.html \ |
256 |
|
|
# recover.html \ |
257 |
|
|
# own-scripts.html \ |
258 |
|
|
# annex-a-devices.html |
259 |
|
|
|
260 |
|
|
theFiles="usb.html |
261 |
|
|
boot-params.html |
262 |
|
|
clonezilla.html |
263 |
|
|
backup.html |
264 |
|
|
backup-smb.html |
265 |
|
|
restoration.html |
266 |
|
|
restore.html |
267 |
|
|
restore-burn.html |
268 |
|
|
reloc-img.html |
269 |
|
|
supergrubdisk.html |
270 |
|
|
oldboot.html |
271 |
|
|
sysresccd.html |
272 |
|
|
partitions.html |
273 |
|
|
recover.html |
274 |
|
|
own-scripts.html |
275 |
|
|
annex-a-devices.html" |
276 |
|
|
for n in $theFiles |
277 |
sng |
28 |
do |
278 |
|
|
html[count]="$n" |
279 |
|
|
((count++)) |
280 |
|
|
done |
281 |
|
|
|
282 |
|
|
|
283 |
|
|
count=0 |
284 |
|
|
while [ -n "${html[$count]}" ] |
285 |
|
|
do |
286 |
|
|
if [ $count -eq 0 ];then |
287 |
|
|
unset prev |
288 |
|
|
else |
289 |
|
|
prev="${html[$((count-1))]}" |
290 |
|
|
fi |
291 |
|
|
n="${html[$count]}" |
292 |
|
|
next="${html[$((count+1))]}" |
293 |
|
|
# |
294 |
|
|
# for n in boot-params.html |
295 |
|
|
# do |
296 |
|
|
|
297 |
|
|
echo -n " $n... " |
298 |
|
|
|
299 |
|
|
sed 's| $||' "$n" | sed " |
300 |
|
|
/<[hH]1>.*<[bB][rR]/d |
301 |
|
|
s|class=\"here\" || |
302 |
|
|
s|<a href=\"doc.html\">|<a class=\"here\" href=\"doc.html\">| |
303 |
|
|
/#content/s/width: 750px;/width: 950px;/ |
304 |
|
|
/<div id=\"menu\">/,/<.div>/d |
305 |
|
|
s|background-image: url('images/line.png'); background-repeat:repeat-y;|| |
306 |
|
|
" > "$n".$$ |
307 |
|
|
mv "$n".$$ "$n" |
308 |
|
|
|
309 |
|
|
|
310 |
|
|
sed "/<!-- docline-top-->/a \ |
311 |
|
|
<div id=\"docline-top\">\ |
312 |
|
|
<a href=\"$prev\">< PREV</a>\ |
313 |
|
|
<a href=\"doc.html\">UP</a>\ |
314 |
|
|
<a href=\"$next\">NEXT ></a>\ |
315 |
|
|
</div>" "$n" | sed "/<div id=.footer.>/a \ |
316 |
|
|
<div id=\"docline-bottom\">\ |
317 |
|
|
<a href=\"$prev\">< PREV</a>\ |
318 |
|
|
<a href=\"doc.html\">UP</a>\ |
319 |
|
|
<a href=\"$next\">NEXT ></a>\ |
320 |
|
|
</div>" > "$n".$$ |
321 |
|
|
mv "$n".$$ "$n" |
322 |
|
|
|
323 |
|
|
|
324 |
|
|
|
325 |
sng |
42 |
############################################################################# |
326 |
|
|
# # |
327 |
|
|
# contents list for doc.html # |
328 |
|
|
# # |
329 |
|
|
############################################################################# |
330 |
sng |
28 |
sed -n '/<[Hh][23]/p' "$n" | sed "1d |
331 |
|
|
/<[Hh][0-9]>Clonezilla-SysRescCD<\/[Hh][0-9]>/d |
332 |
|
|
s|<[sS][pP][aA][nN].*</[sS][pP][aA][nN]>|| |
333 |
|
|
s|\[.*\]|| |
334 |
|
|
s|<[hH][13]>\([^<]\)|<a href=\"$n\">\1| |
335 |
|
|
s|<[hH]2[^>]*>|\ \ \ \ \ \ | |
336 |
|
|
s|<[hH]3[^>]*>|\ \ \ \ \ \ \ \ \ \ \ \ | |
337 |
|
|
s|</[aA]>|| |
338 |
|
|
s|<[aA] [nN][aA][mM][eE]=\"|<a href=\"$n#| |
339 |
|
|
s|</[Hh][0-9]>|</a>| |
340 |
|
|
s| [-]*[>]*</a>|</a>| |
341 |
|
|
s|</a>|</a><br>| |
342 |
|
|
s|Documentation: || |
343 |
|
|
">> list |
344 |
|
|
|
345 |
|
|
|
346 |
|
|
|
347 |
|
|
echo 'done' |
348 |
|
|
((count++)) |
349 |
|
|
done |
350 |
|
|
|
351 |
|
|
|
352 |
|
|
|
353 |
|
|
echo '</p>' >> list |
354 |
|
|
sed '/Identifying devices in Linux/i \ |
355 |
|
|
</p> \ |
356 |
|
|
<H2 >Annex</H2> \ |
357 |
|
|
<p>' list >list.$$ && mv list.$$ list |
358 |
|
|
|
359 |
|
|
sed '/<div id="content">/ r list' < template.html |sed 's|class=\"here\" || |
360 |
|
|
s|<a href=\"doc.html\">|<a class=\"here\" href=\"doc.html\">| |
361 |
|
|
s|\"myTitle\"|Documentation|g'> doc.html |
362 |
|
|
|
363 |
|
|
rm *~ list template.html 2>/dev/null |
364 |
|
|
|
365 |
|
|
|
366 |
sng |
37 |
|
367 |
|
|
############################################################################# |
368 |
|
|
# # |
369 |
|
|
# Creating onepage.html # |
370 |
|
|
# # |
371 |
|
|
############################################################################# |
372 |
|
|
|
373 |
|
|
echo "Creating onepage.html" |
374 |
|
|
|
375 |
|
|
|
376 |
|
|
|
377 |
|
|
sed '1,/<div id="menu">/!d |
378 |
|
|
/<div id="menu">/d |
379 |
|
|
s|<!--.*-->||g |
380 |
|
|
s/margin-top: 0;/margin-top: 0; font-size: 2em;/ |
381 |
|
|
/^$/d' < index.html | sed '$d' > onepage.html |
382 |
|
|
|
383 |
|
|
|
384 |
|
|
rm onepage-tmp.html 2>/dev/null |
385 |
|
|
# exit |
386 |
|
|
#for n in doc.html $theFiles |
387 |
|
|
for n in $theFiles screenshots.html help.html |
388 |
|
|
do |
389 |
|
|
echo -n " $n... " |
390 |
|
|
title=`sed '/<[tT][iI][tT][lL][eE]>/!d |
391 |
|
|
s|<[^>]*>||g |
392 |
|
|
s|Documentation: || |
393 |
|
|
s|Clonezilla-SysRescCD - ||' "$n"` |
394 |
|
|
|
395 |
|
|
sed '1,/<div id="content">/d |
396 |
|
|
/<div id="menu">/,$d |
397 |
|
|
/<div id="footer">/,$d' "$n" | sed "s|</[aA]>Intro|</a>$title| |
398 |
|
|
/<H2 style=\"margin-top: 0;\">/s|margin-top: 0;|font-size: 2em;| |
399 |
|
|
s|<!--.*-->||g |
400 |
|
|
/^$/d" | sed '$d' >> onepage-tmp.html |
401 |
|
|
echo 'done' |
402 |
|
|
done |
403 |
|
|
|
404 |
|
|
cat onepage-tmp.html >> onepage.html |
405 |
|
|
echo '</div>' >> onepage.html |
406 |
|
|
sed '/<div id="menu">/,$!d' index.html |sed '/<div id="menu">/,/<.div>/d' >> onepage.html |
407 |
|
|
|
408 |
|
|
sed '/#content/s/width: 750px;/width: 950px;/ |
409 |
|
|
s|background-image: url('images/line.png'); background-repeat:repeat-y;||g |
410 |
|
|
s|images/line.png||g' onepage.html > o && mv o onepage.html |
411 |
|
|
|
412 |
|
|
rm onepage-tmp.html 2>/dev/null |
413 |
|
|
|
414 |
sng |
100 |
|
415 |
|
|
|
416 |
|
|
############################################################################# |
417 |
|
|
# # |
418 |
|
|
# Fix download.html warning versions # |
419 |
|
|
# # |
420 |
|
|
############################################################################# |
421 |
|
|
verLineIndex=`grep bordertable index.html | grep "$myversion"| grep '[0-9][0-9]*/[0-9][0-9]/[0-9][0-9]' |sed "s|.*"$myVersion"||" | sed 's/"]//g' | sed -n '1p'` |
422 |
|
|
|
423 |
|
|
|
424 |
|
|
CLONEZILLA_VERSION=`echo "$verLineIndex" | sed 's|.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*-[0-9][0-9]*\).*|\1|'` |
425 |
|
|
verLineIndex=`echo "$verLineIndex" | sed "s|.*$CLONEZILLA_VERSION||"` |
426 |
|
|
SYSRESCCD_VERSION=`echo "$verLineIndex" | sed 's|.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|'` |
427 |
|
|
sed " |
428 |
|
|
s/CLONEZILLA_VERSION/$CLONEZILLA_VERSION/ |
429 |
|
|
s/SYSRESCCD_VERSION/$SYSRESCCD_VERSION/ |
430 |
|
|
" download.html > download.html.$$ && mv download.html.$$ download.html |