/[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 46 by sng, Thu May 20 11:24:47 2010 UTC revision 100 by sng, Mon Aug 16 17:02:25 2010 UTC
# Line 26  Line 26 
26  #  #
27  # Set whereIsTheISO to the location of current Clonezilla-SysRescCD ISO file  # Set whereIsTheISO to the location of current Clonezilla-SysRescCD ISO file
28  # Set whereIsTheTarBall to the location of current Clonezilla-SysRescCD TGZ file  # Set whereIsTheTarBall to the location of current Clonezilla-SysRescCD TGZ file
29  whereIsTheISO=/e/clonezilla-sysresccd-full-mod-"$myVersion"/clonezilla-sysresccd-full-mod-"$myVersion".iso  whereIsTheISO=/e/clonezilla-sysresccd-"$myVersion"
 whereIsTheISO=/e/clonezilla-sysresccd-full-mod-"$myVersion".iso  
   
 whereIsTheTarBall=/home/spiros/multibootcd/create-clonezilla-sysresccd-"$myVersion".tar.gz  
   
 ##############################################################################  
   
30    
31  ##############################################################################  ##############################################################################
32  #                             Script starts here                             #  #                             Script starts here                             #
# Line 46  echo -n "  template.html...   " Line 40  echo -n "  template.html...   "
40  myDate=`sed -n '1p' working/release-data `  myDate=`sed -n '1p' working/release-data `
41  myVersion=`sed -n '2p' working/release-data `  myVersion=`sed -n '2p' working/release-data `
42  thisDate=`date '+%d/%m/%Y'`  thisDate=`date '+%d/%m/%Y'`
43  md5sum="$(echo "$whereIsTheISO" | sed 's|/[^/]*$|/md5sum.txt|')"  
44  md5sum="$(cat "$md5sum")"  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  tarballSize=$(du -h "$whereIsTheTarBall" | sed "s|/.*||" |sed 's|\([kMG]\).*| \1|')  tarballSize=$(du -h "$whereIsTheTarBall" | sed "s|/.*||" |sed 's|\([kMG]\).*| \1|')
54  isoSizeEN=$(echo "$isoSize" | sed 's|,|.|')  isoSizeEN=$(echo "$isoSize" | sed 's|,|.|')
# Line 57  tarballSizeEN=$(echo "$tarballSize" | se Line 58  tarballSizeEN=$(echo "$tarballSize" | se
58    
59    
60    
   
61  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.$$  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    
63  rm /tmp/aai.$$ 2>/dev/null  rm /tmp/aai.$$ 2>/dev/null
# Line 93  $l Line 93  $l
93    
94  echo 'done'  echo 'done'
95    
96    
97  #############################################################################  #############################################################################
98  #                                                                           #  #                                                                           #
99  #                              Create news.php                              #  #                              Create news.php                              #
# Line 195  sed '/<!--txt-only-->/!b Line 196  sed '/<!--txt-only-->/!b
196  s/<!--txt-only-->.*<!--end-txt-only-->//' tpm.$$ | sed 's| $||'  | sed "s|\"myTitle\"|$myTitle|  s/<!--txt-only-->.*<!--end-txt-only-->//' tpm.$$ | sed 's| $||'  | sed "s|\"myTitle\"|$myTitle|
197  s|\"myVersion\"|$myVersion|g  s|\"myVersion\"|$myVersion|g
198  s|TARBALL_SIZE|$tarballSizeEN|g  s|TARBALL_SIZE|$tarballSizeEN|g
199  s|ISO_SIZE|$isoSizeEN|g  
200  s|\"MD5SUM\"|$md5sum|  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  /<[hH]1>.*<[bB][rR]/d  /<[hH]1>.*<[bB][rR]/d
208  s|class=\"here\" ||  s|class=\"here\" ||
209  s|<a href=\"$fonly\">|<a class=\"here\" href=\"$fonly\">|  s|<a href=\"$fonly\">|<a class=\"here\" href=\"$fonly\">|
# Line 404  s|images/line.png||g' onepage.html > o & Line 411  s|images/line.png||g' onepage.html > o &
411    
412  rm onepage-tmp.html 2>/dev/null  rm onepage-tmp.html 2>/dev/null
413    
414    
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

Legend:
Removed from v.46  
changed lines
  Added in v.100

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26