/[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 106 by sng, Tue Sep 14 19:24:13 2010 UTC
# 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:" Option
35    do
36     case $Option in
37     d) thisDate="$OPTARG"
38     ;;
39      esac
40    done
41    ./pack-them
42    
43    
44  # Go to www/ directory  # Go to www/ directory
45  cd ..  cd ..
# Line 39  echo 'Creating files' Line 48  echo 'Creating files'
48  echo -n "  template.html...   "  echo -n "  template.html...   "
49  myDate=`sed -n '1p' working/release-data `  myDate=`sed -n '1p' working/release-data `
50  myVersion=`sed -n '2p' working/release-data `  myVersion=`sed -n '2p' working/release-data `
51  thisDate=`date '+%d/%m/%Y'`  if [ -z "$thisDate" ];then
52      thisDate=`date '+%d/%m/%Y'`
53    fi
54    
55  whereIsTheISO="$whereIsTheISO""$myVersion"  whereIsTheISO="$whereIsTheISO""$myVersion"
56  whereIsTheTarBall="$whereIsTheISO"/create-clonezilla-sysresccd-"$myVersion".tar.gz  whereIsTheTarBall="$whereIsTheISO"/create-clonezilla-sysresccd-"$myVersion".tar.gz
# Line 93  $l Line 104  $l
104    
105  echo 'done'  echo 'done'
106    
107    
108  #############################################################################  #############################################################################
109  #                                                                           #  #                                                                           #
110  #                              Create news.php                              #  #                              Create news.php                              #
# Line 410  s|images/line.png||g' onepage.html > o & Line 422  s|images/line.png||g' onepage.html > o &
422    
423  rm onepage-tmp.html 2>/dev/null  rm onepage-tmp.html 2>/dev/null
424    
425    
426    
427    #############################################################################
428    #                                                                           #
429    #                    Fix download.html warning versions                     #
430    #                                                                           #
431    #############################################################################
432    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'`
433    
434    
435    CLONEZILLA_VERSION=`echo "$verLineIndex" | sed 's|.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*-[0-9][0-9]*\).*|\1|'`
436    verLineIndex=`echo "$verLineIndex" | sed "s|.*$CLONEZILLA_VERSION||"`
437    SYSRESCCD_VERSION=`echo "$verLineIndex" | sed 's|.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|'`
438    sed "
439    s/CLONEZILLA_VERSION/$CLONEZILLA_VERSION/
440    s/SYSRESCCD_VERSION/$SYSRESCCD_VERSION/
441    " download.html > download.html.$$ && mv download.html.$$ download.html

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26