/[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 122 by sng, Thu Sep 16 13:06:07 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    noDoc=1
35    while getopts "d:n" Option
36    do
37     case $Option in
38     d) thisDate="$OPTARG"
39     ;;
40     n) unset noDoc;;
41      esac
42    done
43    ./pack-them
44    
45    
46  # Go to www/ directory  # Go to www/ directory
47  cd ..  cd ..
# Line 39  echo 'Creating files' Line 50  echo 'Creating files'
50  echo -n "  template.html...   "  echo -n "  template.html...   "
51  myDate=`sed -n '1p' working/release-data `  myDate=`sed -n '1p' working/release-data `
52  myVersion=`sed -n '2p' working/release-data `  myVersion=`sed -n '2p' working/release-data `
53  thisDate=`date '+%d/%m/%Y'`  if [ -z "$thisDate" ];then
54      thisDate=`date '+%d/%m/%Y'`
55    fi
56    
57  whereIsTheISO="$whereIsTheISO""$myVersion"  whereIsTheISO="$whereIsTheISO""$myVersion"
58  whereIsTheTarBall="$whereIsTheISO"/create-clonezilla-sysresccd-"$myVersion".tar.gz  whereIsTheTarBall="$whereIsTheISO"/create-clonezilla-sysresccd-"$myVersion".tar.gz
# Line 57  tarballSizeEN=$(echo "$tarballSize" | se Line 70  tarballSizeEN=$(echo "$tarballSize" | se
70  # tarballSizeGR=$(echo "$tarballSize" | sed 's|\.|,|')  # tarballSizeGR=$(echo "$tarballSize" | sed 's|\.|,|')
71    
72    
73    #############################################################################
74    #
75    #    Copy RSS feed to trunk. No manipulation!!!
76    #
77    #############################################################################
78    pwd
79    cd working
80    cp  clonezilla-sysresccd.rss ..
81    cd ..
82    
83    
84    
85    #############################################################################
86    #
87    #    Create template.html
88    #
89    #############################################################################
90    
91  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.$$
92    
# Line 93  $l Line 123  $l
123    
124  echo 'done'  echo 'done'
125    
126    
127  #############################################################################  #############################################################################
128  #                                                                           #  #                                                                           #
129  #                              Create news.php                              #  #                              Create news.php                              #
# Line 136  mv p1.$$ xxx.html Line 167  mv p1.$$ xxx.html
167  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.$$
168  sed '1,/<!--seperator-->/d' working/.404.html >> p1.$$  sed '1,/<!--seperator-->/d' working/.404.html >> p1.$$
169  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.$$
170  sed '/<!--seperator-->/d' p1.$$ > 404.html  sed '/<!--seperator-->/d' p1.$$ | sed "s|myVersion|"$myVersion"|g" > 404.html
171  rm *.$$ xxx.html  rm *.$$ xxx.html
172  echo 'done'  echo 'done'
173    
# Line 410  s|images/line.png||g' onepage.html > o & Line 441  s|images/line.png||g' onepage.html > o &
441    
442  rm onepage-tmp.html 2>/dev/null  rm onepage-tmp.html 2>/dev/null
443    
444    
445    
446    #############################################################################
447    #                                                                           #
448    #                    Fix download.html warning versions                     #
449    #                                                                           #
450    #############################################################################
451    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'`
452    
453    
454    CLONEZILLA_VERSION=`echo "$verLineIndex" | sed 's|.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*-[0-9][0-9]*\).*|\1|'`
455    verLineIndex=`echo "$verLineIndex" | sed "s|.*$CLONEZILLA_VERSION||"`
456    SYSRESCCD_VERSION=`echo "$verLineIndex" | sed 's|.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|'`
457    sed "
458    s/CLONEZILLA_VERSION/$CLONEZILLA_VERSION/
459    s/SYSRESCCD_VERSION/$SYSRESCCD_VERSION/
460    " download.html > download.html.$$ && mv download.html.$$ download.html
461    
462    popd
463    if [ -z "$noDoc" ];then
464      ./html2doc
465      ./html2txt
466    else
467      echo
468      echo "    ****  NOT HANDLING DOCS  ****"
469    fi
470    

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26