#!/bin/bash ############################################################################## # # # html2doc, (C) 2007-2010 S. Georgaras # # # # This file is part of Clonezilla-SysRescCD. # # # # Clonezilla-SysRescCD is free software: you can redistribute it and/or # # modify it under the terms of the GNU General Public License as published # # by the Free Software Foundation, either version 2 of the License, or # # (at your option) any later version. # # # # Clonezilla-SysRescCD is distributed in the hope that it will be useful, # # but WITHOUT ANY WARRANTY; without even the implied warranty of # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # GNU General Public License for more details. # # # # You should have received a copy of the GNU General Public License along # # with Clonezilla-SysRescCD. If not, see . # # # ############################################################################## ############################################################################## # Configuration section # # Set whereIsTheISO to the location of current Clonezilla-SysRescCD ISO file # Set whereIsTheTarBall to the location of current Clonezilla-SysRescCD TGZ file whereIsTheISO=/e/clonezilla-sysresccd-full-mod-"$myVersion"/clonezilla-sysresccd-full-mod-"$myVersion".iso whereIsTheISO=/e/clonezilla-sysresccd-full-mod-"$myVersion".iso whereIsTheTarBall=/home/spiros/multibootcd/create-clonezilla-sysresccd-"$myVersion".tar.gz # Go to www/ directory cd .. cd .. for n in usb.html \ boot-params.html \ clonezilla.html \ backup.html \ backup-smb.html \ restoration.html \ restore.html \ restore-burn.html \ reloc-img.html \ supergrubdisk.html \ oldboot.html \ sysresccd.html \ partitions.html \ recover.html \ own-scripts.html \ annex-a-devices.html \ basic-vi.html \ doc.html do cp $n 2doc done cd 2doc mkdir doc 2>/dev/null mv doc.html README.html for n in *.html;do sed ' s{"doc.html"{"README.html"{g s{News{{ s{^[ \t]*Download{{ s{^[ \t]*Credits{{ s{^[ \t]*Home{{ s{^[ \t]*Help{{ s{^[ \t]*Download{{ s{^[ \t]*Screenshots{{ s{[hH][rR][Ee][fF]="README.html"{href="../README.html"{g s{>Documentation<{>Offline Documentation<{ s{Documentation:{Offline Documentation:{ /
/ , /<.div>/ d /
doc/"$n" rm "$n" done # Make sure the UNSTABLE WARNINGS are off for n in doc/*.html;do sed '/<.[sS][Tt][yY][lL][eE]>/ i \ #warning { display: none; }' "$n" > "$n".$$ && mv "$n".$$ "$n" done # Fixing README.html sed ' s{[hH][rR][Ee][fF]="\.\./README.html"{href="README.html"{g s{<[aA] [hH][rR][Ee][fF]="\([^"]*\)">\([^<]*\)<[bB][rR][^>]*>{\2
{ s{\(.\)images/{\1doc/images/{g s{doc/images/line.png{{ /