/[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 99 by sng, Mon Aug 16 13:00:26 2010 UTC revision 121 by sng, Thu Sep 16 11:30:36 2010 UTC
# Line 20  Line 20 
20  #                                                                            #  #                                                                            #
21  ##############################################################################  ##############################################################################
22    
23    pushd "$PWD"
24  ##############################################################################  ##############################################################################
25  # Configuration section  # Configuration section
26  #  #
# Line 31  whereIsTheISO=/e/clonezilla-sysresccd-"$ Line 31  whereIsTheISO=/e/clonezilla-sysresccd-"$
31  ##############################################################################  ##############################################################################
32  #                             Script starts here                             #  #                             Script starts here                             #
33  ##############################################################################  ##############################################################################
34    while getopts "d:n" Option
35    do
36     case $Option in
37     d) thisDate="$OPTARG"
38     ;;
39     n) noDoc=1;;
40      esac
41    done
42    ./pack-them
43    
44    
45  # Go to www/ directory  # Go to www/ directory
46  cd ..  cd ..
# Line 39  echo 'Creating files' Line 49  echo 'Creating files'
49  echo -n "  template.html...   "  echo -n "  template.html...   "
50  myDate=`sed -n '1p' working/release-data `  myDate=`sed -n '1p' working/release-data `
51  myVersion=`sed -n '2p' working/release-data `  myVersion=`sed -n '2p' working/release-data `
52  thisDate=`date '+%d/%m/%Y'`  if [ -z "$thisDate" ];then
53      thisDate=`date '+%d/%m/%Y'`
54    fi
55    
56  whereIsTheISO="$whereIsTheISO""$myVersion"  whereIsTheISO="$whereIsTheISO""$myVersion"
57  whereIsTheTarBall="$whereIsTheISO"/create-clonezilla-sysresccd-"$myVersion".tar.gz  whereIsTheTarBall="$whereIsTheISO"/create-clonezilla-sysresccd-"$myVersion".tar.gz
# Line 93  $l Line 105  $l
105    
106  echo 'done'  echo 'done'
107    
108    
109  #############################################################################  #############################################################################
110  #                                                                           #  #                                                                           #
111  #                              Create news.php                              #  #                              Create news.php                              #
# Line 136  mv p1.$$ xxx.html Line 149  mv p1.$$ xxx.html
149  sed -n '1,/<[dD][iI][vV] [iI][dD]="content">/p' xxx.html> p1.$$  sed -n '1,/<[dD][iI][vV] [iI][dD]="content">/p' xxx.html> p1.$$
150  sed '1,/<!--seperator-->/d' working/.404.html >> p1.$$  sed '1,/<!--seperator-->/d' working/.404.html >> p1.$$
151  sed -n '/<[dD][iI][vV] [iI][dD]="content">/,$p' xxx.html | sed '1d'  >> p1.$$  sed -n '/<[dD][iI][vV] [iI][dD]="content">/,$p' xxx.html | sed '1d'  >> p1.$$
152  sed '/<!--seperator-->/d' p1.$$ > 404.html  sed '/<!--seperator-->/d' p1.$$ | sed "s|myVersion|"$myVersion"|g" > 404.html
153  rm *.$$ xxx.html  rm *.$$ xxx.html
154  echo 'done'  echo 'done'
155    
# Line 410  s|images/line.png||g' onepage.html > o & Line 423  s|images/line.png||g' onepage.html > o &
423    
424  rm onepage-tmp.html 2>/dev/null  rm onepage-tmp.html 2>/dev/null
425    
426    
427    
428    #############################################################################
429    #                                                                           #
430    #                    Fix download.html warning versions                     #
431    #                                                                           #
432    #############################################################################
433    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'`
434    
435    
436    CLONEZILLA_VERSION=`echo "$verLineIndex" | sed 's|.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*-[0-9][0-9]*\).*|\1|'`
437    verLineIndex=`echo "$verLineIndex" | sed "s|.*$CLONEZILLA_VERSION||"`
438    SYSRESCCD_VERSION=`echo "$verLineIndex" | sed 's|.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|'`
439    sed "
440    s/CLONEZILLA_VERSION/$CLONEZILLA_VERSION/
441    s/SYSRESCCD_VERSION/$SYSRESCCD_VERSION/
442    " download.html > download.html.$$ && mv download.html.$$ download.html
443    
444    popd
445    if [ -z "$noDoc" ];then
446      ./html2doc
447      ./html2txt
448    fi
449    

Legend:
Removed from v.99  
changed lines
  Added in v.121

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26