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

Diff of /trunk/www/working/scripts/2site

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

revision 28 by sng, Wed Mar 17 23:46:34 2010 UTC revision 37 by sng, Tue Mar 23 10:28:53 2010 UTC
# Line 191  echo '<H2 style="margin-top: 0;">Content Line 191  echo '<H2 style="margin-top: 0;">Content
191  echo 'Fixing documentation files'  echo 'Fixing documentation files'
192  count=0  count=0
193    
194  for n in project.html \  
195    custom-cd.html \  
196    usb.html \  # for n in project.html \
197    boot-params.html \  #   custom-cd.html \
198    clonezilla.html \  #   usb.html \
199    backup.html \  #   boot-params.html \
200    backup-smb.html \  #   clonezilla.html \
201    restoration.html \  #   backup.html \
202    restore.html \  #   backup-smb.html \
203    restore-burn.html \  #   restoration.html \
204    reloc-img.html \  #   restore.html \
205    supergrubdisk.html \  #   restore-burn.html \
206    oldboot.html \  #   reloc-img.html \
207    sysresccd.html \  #   supergrubdisk.html \
208    partitions.html \  #   oldboot.html \
209    recover.html \  #   sysresccd.html \
210    own-scripts.html \  #   partitions.html \
211    annex-a-devices.html  #   recover.html \
212    #   own-scripts.html \
213    #   annex-a-devices.html
214    
215    theFiles="usb.html
216    boot-params.html
217    clonezilla.html
218    backup.html
219    backup-smb.html
220    restoration.html
221    restore.html
222    restore-burn.html
223    reloc-img.html
224    supergrubdisk.html
225    oldboot.html
226    sysresccd.html
227    partitions.html
228    recover.html
229    own-scripts.html
230    annex-a-devices.html"
231    for n in $theFiles
232  do  do
233          html[count]="$n"          html[count]="$n"
234          ((count++))          ((count++))
# Line 294  s|\"myTitle\"|Documentation|g'> doc.html Line 314  s|\"myTitle\"|Documentation|g'> doc.html
314  rm *~  list template.html 2>/dev/null  rm *~  list template.html 2>/dev/null
315    
316    
317    
318    #############################################################################
319    #                                                                           #
320    #                          Creating onepage.html                            #
321    #                                                                           #
322    #############################################################################
323    
324    echo "Creating onepage.html"
325    
326    
327    
328    sed '1,/<div id="menu">/!d
329    /<div id="menu">/d
330    s|<!--.*-->||g
331    s/margin-top: 0;/margin-top: 0; font-size: 2em;/
332    /^$/d' < index.html | sed '$d' > onepage.html
333    
334    
335    rm onepage-tmp.html 2>/dev/null
336    # exit
337    #for n in doc.html $theFiles
338    for n in $theFiles screenshots.html help.html
339    do
340    echo -n "  $n...   "
341    title=`sed '/<[tT][iI][tT][lL][eE]>/!d
342    s|<[^>]*>||g
343    s|Documentation: ||
344    s|Clonezilla-SysRescCD - ||' "$n"`
345    
346    sed '1,/<div id="content">/d
347    /<div id="menu">/,$d
348    /<div id="footer">/,$d' "$n" | sed "s|</[aA]>Intro|</a>$title|
349    /<H2 style=\"margin-top: 0;\">/s|margin-top: 0;|font-size: 2em;|
350    s|<!--.*-->||g
351    /^$/d" |  sed '$d' >> onepage-tmp.html
352    echo 'done'
353    done
354    
355    cat onepage-tmp.html >> onepage.html
356    echo '</div>' >> onepage.html
357    sed '/<div id="menu">/,$!d' index.html |sed '/<div id="menu">/,/<.div>/d' >> onepage.html
358    
359    sed '/#content/s/width: 750px;/width: 950px;/
360    s|background-image: url('images/line.png'); background-repeat:repeat-y;||g
361    s|images/line.png||g' onepage.html > o && mv o onepage.html
362    
363    rm onepage-tmp.html 2>/dev/null
364    

Legend:
Removed from v.28  
changed lines
  Added in v.37

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26